summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-08-12 10:43:50 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-12 17:17:20 -0300
commit288aeef8021285ac33f4d805694f86360d4733ca (patch)
tree004c1636c84b04d182ad0374eca8f03351ac3736 /common
parent91828a5270ce6fbf43ed3a8cb46e5a017e1b0c7f (diff)
[style] Fixed pep8 warnings after PR
Fixed pep8 warnings after latest PR
Diffstat (limited to 'common')
-rw-r--r--common/src/leap/soledad/common/tests/test_sync_target.py9
-rw-r--r--common/src/leap/soledad/common/tests/util.py2
2 files changed, 7 insertions, 4 deletions
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 8f9e6b34..587debcb 100644
--- a/common/src/leap/soledad/common/tests/test_sync_target.py
+++ b/common/src/leap/soledad/common/tests/test_sync_target.py
@@ -147,7 +147,8 @@ class TestSoledadParseReceivedDocResponse(SoledadWithCouchServerMixin):
#
-def make_local_db_and_soledad_target(test, path='test',
+def make_local_db_and_soledad_target(
+ test, path='test',
source_replica_uid=uuid4().hex):
test.startTwistedServer()
db = test.request_state._create_database(os.path.basename(path))
@@ -155,9 +156,11 @@ def make_local_db_and_soledad_target(test, path='test',
return db, st
-def make_local_db_and_token_soledad_target(test,
+def make_local_db_and_token_soledad_target(
+ test,
source_replica_uid=uuid4().hex):
- db, st = make_local_db_and_soledad_target(test, path='test',
+ db, st = make_local_db_and_soledad_target(
+ test, path='test',
source_replica_uid=source_replica_uid)
st.set_token_credentials('user-uuid', 'auth-token')
return db, st
diff --git a/common/src/leap/soledad/common/tests/util.py b/common/src/leap/soledad/common/tests/util.py
index 5506d789..d42edf18 100644
--- a/common/src/leap/soledad/common/tests/util.py
+++ b/common/src/leap/soledad/common/tests/util.py
@@ -192,7 +192,7 @@ def soledad_sync_target(test, path, source_replica_uid=uuid4().hex):
# TestCase. This is needed so trial knows that it has to manage a reactor and
# wait for deferreds returned by tests to be fired.
BaseLeapTest = type(
- 'BaseLeapTest', (unittest.TestCase,), dict(BaseLeapTest.__dict__))
+ 'BaseLeapTest', (unittest.TestCase,), dict(BaseLeapTest.__dict__))
class BaseSoledadTest(BaseLeapTest, MockedSharedDBTest):