From 12d02d37c4a62f04ce9c2bf695ba696bd01f1626 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Mon, 10 Aug 2015 14:55:44 -0300 Subject: [tests] Fixed double getURL in some tests Some calls to soledad_sync_target were being made with a full path, but the the method itself handles that, so I removed the extraneous calls those problems --- common/src/leap/soledad/common/tests/test_sqlcipher_sync.py | 2 +- common/src/leap/soledad/common/tests/test_sync_target.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common/src') diff --git a/common/src/leap/soledad/common/tests/test_sqlcipher_sync.py b/common/src/leap/soledad/common/tests/test_sqlcipher_sync.py index d3f45114..59e6f802 100644 --- a/common/src/leap/soledad/common/tests/test_sqlcipher_sync.py +++ b/common/src/leap/soledad/common/tests/test_sqlcipher_sync.py @@ -345,7 +345,7 @@ class SQLCipherDatabaseSyncTests( def _make_local_db_and_token_http_target(test, path='test'): test.startTwistedServer() db = test.request_state._create_database(os.path.basename(path)) - st = soledad_sync_target(test, test.getURL(path)) + st = soledad_sync_target(test, path) return db, st target_scenarios = [ diff --git a/common/src/leap/soledad/common/tests/test_sync_target.py b/common/src/leap/soledad/common/tests/test_sync_target.py index ec23c5df..ecf3fc5a 100644 --- a/common/src/leap/soledad/common/tests/test_sync_target.py +++ b/common/src/leap/soledad/common/tests/test_sync_target.py @@ -150,7 +150,7 @@ class TestSoledadParseReceivedDocResponse(SoledadWithCouchServerMixin): def make_local_db_and_soledad_target(test, path='test'): test.startTwistedServer() db = test.request_state._create_database(os.path.basename(path)) - st = soledad_sync_target(test, test.getURL(path)) + st = soledad_sync_target(test, path) return db, st -- cgit v1.2.3