mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 06:49:47 +00:00
Merge pull request #69 from ProgVal/ergo-extban
Enable mute extban tests on Ergo
This commit is contained in:
@ -137,6 +137,7 @@ class ErgoController(BaseServerController, DirectoryBasedController):
|
|||||||
_port_wait_interval = 0.01
|
_port_wait_interval = 0.01
|
||||||
supported_sasl_mechanisms = {"PLAIN"}
|
supported_sasl_mechanisms = {"PLAIN"}
|
||||||
supports_sts = True
|
supports_sts = True
|
||||||
|
extban_mute_char = "m"
|
||||||
|
|
||||||
def create_config(self) -> None:
|
def create_config(self) -> None:
|
||||||
super().create_config()
|
super().create_config()
|
||||||
|
@ -1310,7 +1310,7 @@ class MuteExtban(cases.BaseServerTestCase):
|
|||||||
isupport = self.server_support
|
isupport = self.server_support
|
||||||
token = isupport["EXTBAN"]
|
token = isupport["EXTBAN"]
|
||||||
prefix, comma, types = token.partition(",")
|
prefix, comma, types = token.partition(",")
|
||||||
self.assertIn(self.char, types, f"Missing '{self.char()}' in ISUPPORT EXTBAN")
|
self.assertIn(self.char(), types, f"Missing '{self.char()}' in ISUPPORT EXTBAN")
|
||||||
self.assertEqual(prefix, "")
|
self.assertEqual(prefix, "")
|
||||||
self.assertEqual(comma, ",")
|
self.assertEqual(comma, ",")
|
||||||
|
|
||||||
@ -1350,7 +1350,7 @@ class MuteExtban(cases.BaseServerTestCase):
|
|||||||
"bar",
|
"bar",
|
||||||
"#chan",
|
"#chan",
|
||||||
f"{prefix}{self.char()}:bar!*@*",
|
f"{prefix}{self.char()}:bar!*@*",
|
||||||
"chanop",
|
StrRe("chanop(!.*)?"),
|
||||||
*ANYLIST,
|
*ANYLIST,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user