fix lots of pyflakes3 failures

This commit is contained in:
Shivaram Lingamneni
2019-02-13 19:20:46 -05:00
committed by Valentin Lorentz
parent 2b8aeacd4a
commit 24df4e4496
11 changed files with 3 additions and 21 deletions

View File

@ -1,5 +1,4 @@
import os
import time
import subprocess
from irctest.basecontrollers import NotImplementedByController

View File

@ -3,8 +3,6 @@
"""
from irctest import cases
from irctest.client_mock import NoMessageException
from irctest.basecontrollers import NotImplementedByController
class AccountTagTestCase(cases.BaseServerTestCase, cases.OptionalityHelper):
def connectRegisteredClient(self, nick):

View File

@ -1,5 +1,4 @@
from irctest import cases
from irctest.irc_utils.message_parser import Message
class CapTestCase(cases.BaseServerTestCase):
@cases.SpecificationSelector.requiredBySpecification('IRCv3.1')

View File

@ -4,9 +4,6 @@ Tests section 4.1 of RFC 1459.
"""
from irctest import cases
from irctest import authentication
from irctest.irc_utils.message_parser import Message
from irctest.basecontrollers import NotImplementedByController
from irctest.client_mock import ConnectionClosed
class PasswordedConnectionRegistrationTestCase(cases.BaseServerTestCase):

View File

@ -22,7 +22,7 @@ class EchoMessageTestCase(cases.BaseServerTestCase):
# TODO: check also without this
self.sendLine(1, 'CAP REQ :echo-message{}'.format(
' server-time' if server_time else ''))
m = self.getRegistrationMessage(1)
self.getRegistrationMessage(1)
# TODO: Remove this one the trailing space issue is fixed in Charybdis
# and Mammon:
#self.assertMessageEqual(m, command='CAP',

View File

@ -3,7 +3,6 @@
"""
from irctest import cases
from irctest.irc_utils.message_parser import Message
class MetadataTestCase(cases.BaseServerTestCase, cases.OptionalityHelper):
def connectRegisteredClient(self, nick):
@ -41,7 +40,7 @@ class MetadataTestCase(cases.BaseServerTestCase, cases.OptionalityHelper):
@cases.SpecificationSelector.requiredBySpecification('IRCv3.1')
@cases.OptionalityHelper.skipUnlessHasMechanism('PLAIN')
def testNotLoggedIn(self):
def testLoggedIn(self):
self.connectClient('foo', capabilities=['extended-join'],
skip_if_cap_nak=True)
self.joinChannel(1, '#chan')

View File

@ -4,10 +4,6 @@ Section 3.2 of RFC 2812
"""
from irctest import cases
from irctest import client_mock
from irctest import runner
from irctest.irc_utils import ambiguities
from irctest.irc_utils.message_parser import Message
class PrivmsgTestCase(cases.BaseServerTestCase):
@cases.SpecificationSelector.requiredBySpecification('RFC1459', 'RFC2812')

View File

@ -4,7 +4,6 @@ Tests METADATA features.
"""
from irctest import cases
from irctest.irc_utils.message_parser import Message
class MetadataTestCase(cases.BaseServerTestCase):
valid_metadata_keys = {'valid_key1', 'valid_key2'}

View File

@ -88,7 +88,7 @@ class EchoMessageTestCase(cases.BaseServerTestCase):
self.assertMonoffline(1, 'bar')
@cases.SpecificationSelector.requiredBySpecification('IRCv3.2')
def testMonitorOneConnection(self):
def testMonitorOneConnectionWithQuit(self):
self.connectClient('foo')
self.check_server_support()
self.connectClient('bar')

View File

@ -4,10 +4,6 @@ Tests multi-prefix.
"""
from irctest import cases
from irctest import client_mock
from irctest import runner
from irctest.irc_utils import ambiguities
from irctest.irc_utils.message_parser import Message
class MultiPrefixTestCase(cases.BaseServerTestCase):
@cases.SpecificationSelector.requiredBySpecification('IRCv3.1')

View File

@ -1,7 +1,6 @@
import base64
from irctest import cases
from irctest.irc_utils.message_parser import Message
class RegistrationTestCase(cases.BaseServerTestCase):
def testRegistration(self):