mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 06:49:47 +00:00
Fix some mode tests not being collected because of their class name (#112)
* Fix some mode tests not being collected because of their class name * testBan: Remove unnecessary dependency on echo-message (fixes support for servers without CAP LS)
This commit is contained in:
@ -2,7 +2,7 @@ from irctest import cases
|
||||
from irctest.numerics import ERR_BANNEDFROMCHAN
|
||||
|
||||
|
||||
class BanMode(cases.BaseServerTestCase):
|
||||
class BanModeTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("RFC1459", "RFC2812")
|
||||
def testBan(self):
|
||||
"""Basic ban operation"""
|
||||
@ -12,9 +12,7 @@ class BanMode(cases.BaseServerTestCase):
|
||||
self.sendLine("chanop", "MODE #chan +b bar!*@*")
|
||||
self.assertMessageMatch(self.getMessage("chanop"), command="MODE")
|
||||
|
||||
self.connectClient(
|
||||
"Bar", name="bar", capabilities=["echo-message"], skip_if_cap_nak=True
|
||||
)
|
||||
self.connectClient("Bar", name="bar")
|
||||
self.getMessages("bar")
|
||||
self.sendLine("bar", "JOIN #chan")
|
||||
self.assertMessageMatch(self.getMessage("bar"), command=ERR_BANNEDFROMCHAN)
|
||||
@ -35,7 +33,7 @@ class BanMode(cases.BaseServerTestCase):
|
||||
self.sendLine("chanop", "MODE #chan +b BAR!*@*")
|
||||
self.assertMessageMatch(self.getMessage("chanop"), command="MODE")
|
||||
|
||||
self.connectClient("Bar", name="bar", capabilities=["echo-message"])
|
||||
self.connectClient("Bar", name="bar")
|
||||
self.getMessages("bar")
|
||||
self.sendLine("bar", "JOIN #chan")
|
||||
self.assertMessageMatch(self.getMessage("bar"), command=ERR_BANNEDFROMCHAN)
|
||||
|
@ -12,7 +12,7 @@ MODERN_CAPS = [
|
||||
|
||||
|
||||
@cases.mark_services
|
||||
class RegisteredOnlySpeakMode(cases.BaseServerTestCase):
|
||||
class RegisteredOnlySpeakModeTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("Ergo")
|
||||
def testRegisteredOnlySpeakMode(self):
|
||||
self.controller.registerUser(self, "evan", "sesame")
|
||||
@ -68,7 +68,7 @@ class RegisteredOnlySpeakMode(cases.BaseServerTestCase):
|
||||
)
|
||||
|
||||
|
||||
class OpModerated(cases.BaseServerTestCase):
|
||||
class OpModeratedTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("Ergo")
|
||||
def testOpModerated(self):
|
||||
# test the +U channel mode
|
||||
|
@ -2,7 +2,7 @@ from irctest import cases
|
||||
from irctest.numerics import ERR_CANNOTSENDTOCHAN
|
||||
|
||||
|
||||
class ModeratedMode(cases.BaseServerTestCase):
|
||||
class ModeratedModeTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("RFC2812")
|
||||
def testModeratedMode(self):
|
||||
# test the +m channel mode
|
||||
|
@ -3,7 +3,7 @@ from irctest.numerics import ERR_CANNOTSENDTOCHAN, ERR_CHANOPRIVSNEEDED
|
||||
from irctest.patma import ANYLIST, StrRe
|
||||
|
||||
|
||||
class MuteExtban(cases.BaseServerTestCase):
|
||||
class MuteExtbanTestCase(cases.BaseServerTestCase):
|
||||
"""https://defs.ircdocs.horse/defs/isupport.html#extban
|
||||
|
||||
It magically guesses what char the IRCd uses for mutes."""
|
||||
|
Reference in New Issue
Block a user