mirror of
https://github.com/progval/irctest.git
synced 2025-04-08 00:09:46 +00:00
Skip testLabeledPrivmsgResponsesToMultipleClients if PRIVMSG doesn't support multiple targets (#217)
This commit is contained in:
@ -12,6 +12,7 @@ import pytest
|
|||||||
from irctest import cases
|
from irctest import cases
|
||||||
from irctest.numerics import ERR_UNKNOWNCOMMAND
|
from irctest.numerics import ERR_UNKNOWNCOMMAND
|
||||||
from irctest.patma import ANYDICT, ANYOPTSTR, NotStrRe, RemainingKeys, StrRe
|
from irctest.patma import ANYDICT, ANYOPTSTR, NotStrRe, RemainingKeys, StrRe
|
||||||
|
from irctest.runner import OptionalExtensionNotSupported
|
||||||
|
|
||||||
|
|
||||||
class LabeledResponsesTestCase(cases.BaseServerTestCase):
|
class LabeledResponsesTestCase(cases.BaseServerTestCase):
|
||||||
@ -22,7 +23,10 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase):
|
|||||||
capabilities=["echo-message", "batch", "labeled-response"],
|
capabilities=["echo-message", "batch", "labeled-response"],
|
||||||
skip_if_cap_nak=True,
|
skip_if_cap_nak=True,
|
||||||
)
|
)
|
||||||
|
if int(self.targmax.get("PRIVMSG", "1") or "4") < 3:
|
||||||
|
raise OptionalExtensionNotSupported("PRIVMSG to multiple targets")
|
||||||
self.getMessages(1)
|
self.getMessages(1)
|
||||||
|
|
||||||
self.connectClient(
|
self.connectClient(
|
||||||
"bar",
|
"bar",
|
||||||
capabilities=["echo-message", "batch", "labeled-response"],
|
capabilities=["echo-message", "batch", "labeled-response"],
|
||||||
|
Reference in New Issue
Block a user