summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-12-11 08:33:28 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-12-11 08:33:28 -0200
commit766c4838fdabb50b6aa9a2594f091ec43750f691 (patch)
tree901dbe5e02cad55a9971445d24f81465b1305c07 /service/test/unit
parent7de1975fd3533ed3b2d5c46cddbaae65eac57175 (diff)
optmizing python imports
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/adapter/soledad_querier_test.py7
-rw-r--r--service/test/unit/bitmask_libraries/smtp_test.py3
-rw-r--r--service/test/unit/config/app_factory_test.py2
-rw-r--r--service/test/unit/controllers/mails_controller_test.py2
-rw-r--r--service/test/unit/controllers/sync_info_controller_test.py3
-rw-r--r--service/test/unit/runserver_test.py2
6 files changed, 11 insertions, 8 deletions
diff --git a/service/test/unit/adapter/soledad_querier_test.py b/service/test/unit/adapter/soledad_querier_test.py
index d07fdb00..561c4cb8 100644
--- a/service/test/unit/adapter/soledad_querier_test.py
+++ b/service/test/unit/adapter/soledad_querier_test.py
@@ -14,13 +14,14 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import unittest
-from pixelated.adapter.soledad_querier import SoledadQuerier
-from mockito import mock, when, any
import json
-import os
import base64
import quopri
+from pixelated.adapter.soledad_querier import SoledadQuerier
+from mockito import mock, when, any
+import os
+
class SoledadQuerierTest(unittest.TestCase):
diff --git a/service/test/unit/bitmask_libraries/smtp_test.py b/service/test/unit/bitmask_libraries/smtp_test.py
index ca8a89e4..b00a0af6 100644
--- a/service/test/unit/bitmask_libraries/smtp_test.py
+++ b/service/test/unit/bitmask_libraries/smtp_test.py
@@ -13,8 +13,9 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-import os
import sys
+
+import os
from mock import MagicMock, patch
from abstract_leap_test import AbstractLeapTest
from pixelated.bitmask_libraries.smtp import LeapSmtp
diff --git a/service/test/unit/config/app_factory_test.py b/service/test/unit/config/app_factory_test.py
index 29739ab1..a42c7c83 100644
--- a/service/test/unit/config/app_factory_test.py
+++ b/service/test/unit/config/app_factory_test.py
@@ -1,7 +1,7 @@
import unittest
+
from mock import patch, MagicMock, ANY
import pixelated
-
from pixelated.config.app_factory import create_app
diff --git a/service/test/unit/controllers/mails_controller_test.py b/service/test/unit/controllers/mails_controller_test.py
index 3e28e6b0..ab87c205 100644
--- a/service/test/unit/controllers/mails_controller_test.py
+++ b/service/test/unit/controllers/mails_controller_test.py
@@ -14,8 +14,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import json
-
import unittest
+
from klein.test_resource import requestMock
from mock import MagicMock
from mockito import *
diff --git a/service/test/unit/controllers/sync_info_controller_test.py b/service/test/unit/controllers/sync_info_controller_test.py
index ce9a0dff..cd3aeb02 100644
--- a/service/test/unit/controllers/sync_info_controller_test.py
+++ b/service/test/unit/controllers/sync_info_controller_test.py
@@ -14,10 +14,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import unittest
+import json
+
from mock import MagicMock
from pixelated.controllers import SyncInfoController
from mockito import *
-import json
class SyncInfoControllerTest(unittest.TestCase):
diff --git a/service/test/unit/runserver_test.py b/service/test/unit/runserver_test.py
index 57359259..99b502f1 100644
--- a/service/test/unit/runserver_test.py
+++ b/service/test/unit/runserver_test.py
@@ -16,10 +16,10 @@
import unittest
import sys
-import os
import thread
import json
+import os
import pixelated.config.app_factory
import pixelated.runserver
from mockito import *