summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-20 19:17:35 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:26 +0200
commit4b433c6e9b18f6086fffbc250b8e6b2534dd0e77 (patch)
tree14de0d7c19cd31fbb70f96de666df1a1de60a949 /service
parent40fb94aaf5de724050232057013d8d07c8fe6db8 (diff)
fix unit tests for soledad.need_sync method, its gone
Diffstat (limited to 'service')
-rw-r--r--service/test/unit/bitmask_libraries/test_soledad.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/unit/bitmask_libraries/test_soledad.py b/service/test/unit/bitmask_libraries/test_soledad.py
index a3a1094a..49691178 100644
--- a/service/test/unit/bitmask_libraries/test_soledad.py
+++ b/service/test/unit/bitmask_libraries/test_soledad.py
@@ -14,6 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
from mock import patch
+from unittest import skip
from pixelated.bitmask_libraries.soledad import SoledadSession
from test_abstract_leap import AbstractLeapTest
@@ -45,16 +46,15 @@ class SoledadSessionTest(AbstractLeapTest):
def test_that_sync_is_called(self, soledad_mock):
instance = soledad_mock.return_value
instance.server_url = '/foo/bar'
- instance.need_sync.return_value = True
soledad_session = SoledadSession(self.provider, 'any-passphrase', self.auth.token, self.auth.uuid)
# when
soledad_session.sync()
# then
- instance.need_sync.assert_called_with('/foo/bar')
instance.sync.assert_called_with()
+ @skip("need_sync is gone, we need to find out what can replace it")
def test_that_sync_not_called_if_not_needed(self, mock):
instance = mock.return_value
instance.server_url = '/foo/bar'