diff --git a/test/integration/test_resolver.py b/test/integration/test_resolver.py
index 1b281edd480de233746c29e846f4aba84e52b55a..f33a33241bedc3c4a24d9ee505010af9ba87dab4 100644
--- a/test/integration/test_resolver.py
+++ b/test/integration/test_resolver.py
@@ -9,8 +9,6 @@ from gi.repository import GLib
 
 from gajim.common import resolver
 
-from gajim_mocks import *
-
 NONSENSE_NAME = 'sfsdfsdfsdf.sdfs.fsd'
 JABBERCZ_TXT_NAME = '_xmppconnect.jabber.cz'
 JABBERCZ_SRV_NAME = '_xmpp-client._tcp.jabber.cz'
diff --git a/test/integration/test_roster.py b/test/integration/test_roster.py
index 02ee7fe154f299309832c3efd1a2a933de209eb4..d2a1cf0a24f12220cbeac3532b6203c73f4f08f7 100644
--- a/test/integration/test_roster.py
+++ b/test/integration/test_roster.py
@@ -5,7 +5,6 @@ lib.setup_env()
 
 from data import *
 
-from mock import Mock, expectParams
 from gajim_mocks import *
 
 from gajim.common import app
diff --git a/test/unit/test_gui_interface.py b/test/unit/test_gui_interface.py
index 31db50624fe19ca30579f52f03d20c8fc8f85343..2055f76531352b3f203833e34e5b71fde093e5ee 100644
--- a/test/unit/test_gui_interface.py
+++ b/test/unit/test_gui_interface.py
@@ -11,9 +11,6 @@ logging_helpers.set_quiet()
 
 from gajim.common import app
 
-from gajim_mocks import MockLogger
-app.logger = MockLogger()
-
 from gajim.gui_interface import Interface
 
 from gi.repository import GLib
diff --git a/test/unit/test_sessions.py b/test/unit/test_sessions.py
index 48e14be180da36fa9fda4f60f594c4a456c5e6be..66ef85232798e7799ef09c99e9eb576f03b2b138 100644
--- a/test/unit/test_sessions.py
+++ b/test/unit/test_sessions.py
@@ -1,12 +1,10 @@
 import unittest
 
-import time
-
 import lib
 lib.setup_env()
 
-
 import notify
+import nbxmpp
 
 from gajim.common import app
 from gajim.common import nec
@@ -14,7 +12,6 @@ from gajim.common import ged
 from gajim.common.nec import NetworkEvent
 from gajim.common.modules.message import MessageReceivedEvent
 from gajim.common.modules.message import DecryptedMessageReceivedEvent
-import nbxmpp
 
 from gajim.session import ChatControlSession
 from gajim.roster_window import RosterWindow
@@ -54,8 +51,6 @@ class TestChatControlSession(unittest.TestCase):
         msg.setBody(msgtxt)
         msg.setType('chat')
 
-        tim = time.localtime()
-        encrypted = False
         xml = """<message from='%s' id='1' type='chat'><body>%s</body>
             <thread>123</thread></message>""" % (jid, msgtxt)
         stanza = nbxmpp.protocol.Message(node=nbxmpp.simplexml.XML2Node(xml))