summaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-08-10 14:55:44 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-12 17:17:19 -0300
commit12d02d37c4a62f04ce9c2bf695ba696bd01f1626 (patch)
tree559b3c718a967c675a4d53a702d6973612df8fb3 /common/src
parent79fa79280ee4e20897a94657ea64e77acdfbc9c3 (diff)
[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
Diffstat (limited to 'common/src')
-rw-r--r--common/src/leap/soledad/common/tests/test_sqlcipher_sync.py2
-rw-r--r--common/src/leap/soledad/common/tests/test_sync_target.py2
2 files changed, 2 insertions, 2 deletions
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