Enable WHO mask tests on Sable

This commit is contained in:
Val Lorentz 2024-04-19 16:59:52 +02:00
parent 07020666ba
commit bc6ec0edce
2 changed files with 9 additions and 9 deletions

View File

@ -378,7 +378,7 @@ class SableController(BaseServerController, DirectoryBasedController):
.strip(), .strip(),
services_management_hostname=services_management_hostname, services_management_hostname=services_management_hostname,
services_management_port=services_management_port, services_management_port=services_management_port,
services_alias_users=SERVICES_ALIAS_USERS if run_services else "" services_alias_users=SERVICES_ALIAS_USERS if run_services else "",
) )
with self.open_file("configs/network.conf") as fd: with self.open_file("configs/network.conf") as fd:

View File

@ -87,7 +87,7 @@ class BaseWhoTestCase:
class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase): class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoStar(self): def testWhoStar(self):
if self.controller.software_name in ("Bahamut", "Sable"): if self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -118,7 +118,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
) )
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoNick(self, mask): def testWhoNick(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -148,7 +148,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
ids=["username", "realname-mask", "hostname"], ids=["username", "realname-mask", "hostname"],
) )
def testWhoUsernameRealName(self, mask): def testWhoUsernameRealName(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -201,7 +201,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
) )
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoNickAway(self, mask): def testWhoNickAway(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -235,7 +235,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
) )
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoNickOper(self, mask): def testWhoNickOper(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -274,7 +274,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
) )
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoNickAwayAndOper(self, mask): def testWhoNickAwayAndOper(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -308,7 +308,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
@pytest.mark.parametrize("mask", ["#chan", "#CHAN"], ids=["exact", "casefolded"]) @pytest.mark.parametrize("mask", ["#chan", "#CHAN"], ids=["exact", "casefolded"])
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoChan(self, mask): def testWhoChan(self, mask):
if "*" in mask and self.controller.software_name in ("Bahamut", "Sable"): if "*" in mask and self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self._init() self._init()
@ -632,7 +632,7 @@ class WhoServicesTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
class WhoInvisibleTestCase(cases.BaseServerTestCase): class WhoInvisibleTestCase(cases.BaseServerTestCase):
@cases.mark_specifications("Modern") @cases.mark_specifications("Modern")
def testWhoInvisible(self): def testWhoInvisible(self):
if self.controller.software_name in ("Bahamut", "Sable"): if self.controller.software_name in ("Bahamut",):
raise runner.OptionalExtensionNotSupported("WHO mask") raise runner.OptionalExtensionNotSupported("WHO mask")
self.connectClient("evan", name="evan") self.connectClient("evan", name="evan")