Test: remove unused imports
This commit is contained in:
parent
5ecdfbee5c
commit
49758ab30e
|
@ -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'
|
||||
|
|
|
@ -5,7 +5,6 @@ lib.setup_env()
|
|||
|
||||
from data import *
|
||||
|
||||
from mock import Mock, expectParams
|
||||
from gajim_mocks import *
|
||||
|
||||
from gajim.common import app
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue