summaryrefslogtreecommitdiff
path: root/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-07-23 22:09:53 -0300
committerdrebs <drebs@leap.se>2013-07-24 01:32:59 -0300
commitb5f9e0ce679c87075d04db0645f18281feeeb01d (patch)
treeb4ebc9dcb33325c4f6925e79ff30417faa2b54e3 /soledad
parent2e04e92a09985698ef82bd6b61f5f74d80c1b09f (diff)
Remove unused imports.
Diffstat (limited to 'soledad')
-rw-r--r--soledad/src/leap/soledad/auth.py3
-rw-r--r--soledad/src/leap/soledad/tests/test_server.py6
2 files changed, 1 insertions, 8 deletions
diff --git a/soledad/src/leap/soledad/auth.py b/soledad/src/leap/soledad/auth.py
index 8c093099..81e838d2 100644
--- a/soledad/src/leap/soledad/auth.py
+++ b/soledad/src/leap/soledad/auth.py
@@ -24,7 +24,6 @@ they can do token-based auth requests to the Soledad server.
"""
-from u1db.remote.http_client import HTTPClientBase
from u1db import errors
@@ -68,4 +67,4 @@ class TokenBasedAuth(object):
return [('Authorization', 'Token %s' % auth.encode('base64')[:-1])]
else:
raise errors.UnknownAuthMethod(
- 'Wrong credentials: %s' % self._creds)
+ 'Wrong credentials: %s' % self._creds) \ No newline at end of file
diff --git a/soledad/src/leap/soledad/tests/test_server.py b/soledad/src/leap/soledad/tests/test_server.py
index 490d2fc8..ba01a391 100644
--- a/soledad/src/leap/soledad/tests/test_server.py
+++ b/soledad/src/leap/soledad/tests/test_server.py
@@ -21,17 +21,13 @@ Tests for server-related functionality.
"""
import os
-import shutil
import tempfile
import simplejson as json
-import hashlib
import mock
from leap.soledad import Soledad
from leap.soledad_server import (
- SoledadApp,
- SoledadAuthMiddleware,
URLToAuth,
)
from leap.soledad_server.couch import (
@@ -42,11 +38,9 @@ from leap.soledad import target
from leap.common.testing.basetest import BaseLeapTest
-from leap.soledad.tests import ADDRESS
from leap.soledad.tests.u1db_tests import (
TestCaseWithServer,
simple_doc,
- nested_doc,
)
from leap.soledad.tests.test_couch import CouchDBTestCase
from leap.soledad.tests.test_target import (