summaryrefslogtreecommitdiff
path: root/soledad/src/leap
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-06-17 13:57:14 -0300
committerdrebs <drebs@leap.se>2013-06-20 15:19:54 -0300
commitb18092259fe2acb614ae58edb3c793ca1fe655f2 (patch)
tree6cecdbb8750a80d0afd2d100be14264225de2b26 /soledad/src/leap
parentf0d7aabac26ed8af454c8a305fff1bc8f9d3652f (diff)
Fix soledad tests so the mocked target does not influence other tests.
Diffstat (limited to 'soledad/src/leap')
-rw-r--r--soledad/src/leap/soledad/tests/test_soledad.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/soledad/src/leap/soledad/tests/test_soledad.py b/soledad/src/leap/soledad/tests/test_soledad.py
index 1a991bfb..281b7a0f 100644
--- a/soledad/src/leap/soledad/tests/test_soledad.py
+++ b/soledad/src/leap/soledad/tests/test_soledad.py
@@ -282,6 +282,7 @@ class SoledadSignalingTestCase(BaseSoledadTest):
soledad.signal.reset_mock()
sol = self._soledad_instance()
# mock the sync target
+ old_get_sync_info = SoledadSyncTarget.get_sync_info
SoledadSyncTarget.get_sync_info = Mock(return_value=[0, 0, 0, 0, 2])
# mock our generation so soledad thinks there's new data to sync
sol._db._get_generation = Mock(return_value=1)
@@ -292,3 +293,4 @@ class SoledadSignalingTestCase(BaseSoledadTest):
proto.SOLEDAD_NEW_DATA_TO_SYNC,
ADDRESS,
)
+ SoledadSyncTarget.get_sync_info = old_get_sync_info