Test: remove unused imports

This commit is contained in:
André Apitzsch 2018-11-10 18:22:25 +01:00 committed by Philipp Hörist
parent e95a7fccd2
commit e8941a4f0f
4 changed files with 1 additions and 12 deletions

View File

@ -9,8 +9,6 @@ from gi.repository import GLib
from gajim.common import resolver from gajim.common import resolver
from gajim_mocks import *
NONSENSE_NAME = 'sfsdfsdfsdf.sdfs.fsd' NONSENSE_NAME = 'sfsdfsdfsdf.sdfs.fsd'
JABBERCZ_TXT_NAME = '_xmppconnect.jabber.cz' JABBERCZ_TXT_NAME = '_xmppconnect.jabber.cz'
JABBERCZ_SRV_NAME = '_xmpp-client._tcp.jabber.cz' JABBERCZ_SRV_NAME = '_xmpp-client._tcp.jabber.cz'

View File

@ -5,7 +5,6 @@ lib.setup_env()
from data import * from data import *
from mock import Mock, expectParams
from gajim_mocks import * from gajim_mocks import *
from gajim.common import app from gajim.common import app

View File

@ -11,9 +11,6 @@ logging_helpers.set_quiet()
from gajim.common import app from gajim.common import app
from gajim_mocks import MockLogger
app.logger = MockLogger()
from gajim.gui_interface import Interface from gajim.gui_interface import Interface
from gi.repository import GLib from gi.repository import GLib

View File

@ -1,12 +1,10 @@
import unittest import unittest
import time
import lib import lib
lib.setup_env() lib.setup_env()
import notify import notify
import nbxmpp
from gajim.common import app from gajim.common import app
from gajim.common import nec from gajim.common import nec
@ -14,7 +12,6 @@ from gajim.common import ged
from gajim.common.nec import NetworkEvent from gajim.common.nec import NetworkEvent
from gajim.common.modules.message import MessageReceivedEvent from gajim.common.modules.message import MessageReceivedEvent
from gajim.common.modules.message import DecryptedMessageReceivedEvent from gajim.common.modules.message import DecryptedMessageReceivedEvent
import nbxmpp
from gajim.session import ChatControlSession from gajim.session import ChatControlSession
from gajim.roster_window import RosterWindow from gajim.roster_window import RosterWindow
@ -54,8 +51,6 @@ class TestChatControlSession(unittest.TestCase):
msg.setBody(msgtxt) msg.setBody(msgtxt)
msg.setType('chat') msg.setType('chat')
tim = time.localtime()
encrypted = False
xml = """<message from='%s' id='1' type='chat'><body>%s</body> xml = """<message from='%s' id='1' type='chat'><body>%s</body>
<thread>123</thread></message>""" % (jid, msgtxt) <thread>123</thread></message>""" % (jid, msgtxt)
stanza = nbxmpp.protocol.Message(node=nbxmpp.simplexml.XML2Node(xml)) stanza = nbxmpp.protocol.Message(node=nbxmpp.simplexml.XML2Node(xml))