diff --git a/test/integration/test_resolver.py b/test/integration/test_resolver.py index 1b281edd4..f33a33241 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 02ee7fe15..d2a1cf0a2 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 31db50624..2055f7653 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 48e14be18..66ef85232 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 = """%s 123""" % (jid, msgtxt) stanza = nbxmpp.protocol.Message(node=nbxmpp.simplexml.XML2Node(xml))