irctest/irctest/runner.py

60 lines
1.8 KiB
Python
Raw Permalink Normal View History

2021-02-22 18:04:23 +00:00
import unittest
2021-02-22 18:02:13 +00:00
2015-12-20 12:12:54 +00:00
class NotImplementedByController(unittest.SkipTest, NotImplementedError):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Not implemented by controller: {}".format(self.args[0])
2015-12-22 00:56:01 +00:00
class ImplementationChoice(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return (
"Choice in the implementation makes it impossible to "
"perform a test: {}".format(self.args[0])
)
2015-12-22 00:56:01 +00:00
class OptionalCommandNotSupported(unittest.SkipTest):
def __str__(self) -> str:
return "Unsupported command: {}".format(self.args[0])
class OptionalExtensionNotSupported(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Unsupported extension: {}".format(self.args[0])
class OptionalSaslMechanismNotSupported(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Unsupported SASL mechanism: {}".format(self.args[0])
2019-12-08 20:26:21 +00:00
class CapabilityNotSupported(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Unsupported capability: {}".format(self.args[0])
2019-12-08 20:26:21 +00:00
class IsupportTokenNotSupported(unittest.SkipTest):
def __str__(self) -> str:
return "Unsupported ISUPPORT token: {}".format(self.args[0])
2021-02-26 23:21:23 +00:00
class ChannelModeNotSupported(unittest.SkipTest):
def __str__(self) -> str:
2021-02-26 23:21:23 +00:00
return "Unsupported channel mode: {} ({})".format(self.args[0], self.args[1])
class ExtbanNotSupported(unittest.SkipTest):
def __str__(self) -> str:
2021-02-26 23:21:23 +00:00
return "Unsupported extban: {} ({})".format(self.args[0], self.args[1])
class NotRequiredBySpecifications(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Tests not required by the set of tested specification(s)."
2015-12-23 18:39:34 +00:00
class SkipStrictTest(unittest.SkipTest):
def __str__(self) -> str:
2021-02-22 18:02:13 +00:00
return "Tests not required because strict tests are disabled."