mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 14:59:49 +00:00
fix lots of pyflakes3 failures
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import os
|
||||
import time
|
||||
import subprocess
|
||||
|
||||
from irctest.basecontrollers import NotImplementedByController
|
||||
|
@ -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):
|
||||
|
@ -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')
|
||||
|
@ -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):
|
||||
|
@ -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',
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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'}
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user