diff options
author | Kali Kaneko <kali@leap.se> | 2015-08-04 17:56:35 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-08-04 17:56:35 -0400 |
commit | 0b1e55d3142d7012cd7fef39b6ed77be69d5ee11 (patch) | |
tree | 83a96143cfbdc1eb549c2b5ee6fca40e9685230a /common/src/leap/soledad/common/tests/u1db_tests/__init__.py | |
parent | c1b99f965f248c20e19eac44b3da239a9e6828ac (diff) |
[style] pep8 cleanup
Diffstat (limited to 'common/src/leap/soledad/common/tests/u1db_tests/__init__.py')
-rw-r--r-- | common/src/leap/soledad/common/tests/u1db_tests/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/tests/u1db_tests/__init__.py b/common/src/leap/soledad/common/tests/u1db_tests/__init__.py index 787494d3..9efe7ebf 100644 --- a/common/src/leap/soledad/common/tests/u1db_tests/__init__.py +++ b/common/src/leap/soledad/common/tests/u1db_tests/__init__.py @@ -238,6 +238,7 @@ class DatabaseBaseTests(TestCase): class ServerStateForTests(server_state.ServerState): + """Used in the test suite, so we don't have to touch disk, etc.""" def __init__(self): @@ -284,6 +285,7 @@ class ServerStateForTests(server_state.ServerState): class ResponderForTests(object): + """Responder for tests.""" _started = False sent_response = False @@ -309,6 +311,7 @@ class TestCaseWithServer(TestCase): # hook point # should return (ServerClass, "shutdown method name", "url_scheme") class _RequestHandler(simple_server.WSGIRequestHandler): + def log_request(*args): pass # suppress @@ -394,6 +397,7 @@ token3 = oauth.OAuthToken('kkkk3', 'ZYX') class TestingOAuthDataStore(oauth.OAuthDataStore): + """In memory predefined OAuthDataStore for testing.""" consumers = { |