Enable mute extban tests on Ergo

This commit is contained in:
Valentin Lorentz 2021-07-04 00:06:26 +02:00
parent 4932d410e2
commit 61974e6d0c
2 changed files with 3 additions and 2 deletions

View File

@ -137,6 +137,7 @@ class ErgoController(BaseServerController, DirectoryBasedController):
_port_wait_interval = 0.01
supported_sasl_mechanisms = {"PLAIN"}
supports_sts = True
extban_mute_char = "m"
def create_config(self) -> None:
super().create_config()

View File

@ -1310,7 +1310,7 @@ class MuteExtban(cases.BaseServerTestCase):
isupport = self.server_support
token = isupport["EXTBAN"]
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(comma, ",")
@ -1350,7 +1350,7 @@ class MuteExtban(cases.BaseServerTestCase):
"bar",
"#chan",
f"{prefix}{self.char()}:bar!*@*",
"chanop",
StrRe("chanop(!.*)?"),
*ANYLIST,
],
)