unreal: deselect tests depending on +draft/react

Unreal won't support them 1st-party:
https://github.com/unrealircd/unrealircd/pull/149
This commit is contained in:
2021-07-03 09:40:49 +02:00
parent 4be59a77ed
commit 83152bdc24
3 changed files with 11 additions and 1 deletions

View File

@ -64,7 +64,8 @@ SOPEL_SELECTORS := \
# test_regressions::testTagCap fails: https://bugs.unrealircd.org/view.php?id=5948 # test_regressions::testTagCap fails: https://bugs.unrealircd.org/view.php?id=5948
# test_messages::testLineTooLong fails: https://bugs.unrealircd.org/view.php?id=5947 # test_messages::testLineTooLong fails: https://bugs.unrealircd.org/view.php?id=5947
# testCapRemovalByClient and testNakWhole fail pending https://github.com/unrealircd/unrealircd/pull/148 # testCapRemovalByClient and testNakWhole fail pending https://github.com/unrealircd/unrealircd/pull/148
# Tests marked with arbitrary_client_tags can't pass because Unreal whitelists tags it relays # Tests marked with arbitrary_client_tags can't pass because Unreal whitelists which tags it relays
# Tests marked with react_tag can't pass because Unreal blocks +draft/react https://github.com/unrealircd/unrealircd/pull/149
UNREALIRCD_SELECTORS := \ UNREALIRCD_SELECTORS := \
not Ergo \ not Ergo \
and not deprecated \ and not deprecated \
@ -74,6 +75,7 @@ UNREALIRCD_SELECTORS := \
and not (test_messages and testLineTooLong) \ and not (test_messages and testLineTooLong) \
and not (test_cap and (testCapRemovalByClient or testNakWhole)) \ and not (test_cap and (testCapRemovalByClient or testNakWhole)) \
and not arbitrary_client_tags \ and not arbitrary_client_tags \
and not react_tag \
$(EXTRA_SELECTORS) $(EXTRA_SELECTORS)
.PHONY: all flakes charybdis ergo inspircd mammon limnoria sopel solanum unrealircd .PHONY: all flakes charybdis ergo inspircd mammon limnoria sopel solanum unrealircd

View File

@ -7,6 +7,8 @@ so there may be many false positives.
import re import re
import pytest
from irctest import cases from irctest import cases
from irctest.patma import ANYDICT, AnyOptStr, NotStrRe, RemainingKeys, StrRe from irctest.patma import ANYDICT, AnyOptStr, NotStrRe, RemainingKeys, StrRe
@ -89,6 +91,7 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase, cases.OptionalityHelper
self.assertMessageMatch(m, command="PRIVMSG", tags={"label": "12345"}) self.assertMessageMatch(m, command="PRIVMSG", tags={"label": "12345"})
@pytest.mark.react_tag
@cases.mark_capabilities("echo-message", "batch", "labeled-response") @cases.mark_capabilities("echo-message", "batch", "labeled-response")
def testLabeledPrivmsgResponsesToChannel(self): def testLabeledPrivmsgResponsesToChannel(self):
self.connectClient( self.connectClient(
@ -190,6 +193,7 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase, cases.OptionalityHelper
self.assertMessageMatch(m, command="NOTICE", tags={"label": "12345"}) self.assertMessageMatch(m, command="NOTICE", tags={"label": "12345"})
@pytest.mark.react_tag
@cases.mark_capabilities("echo-message", "batch", "labeled-response") @cases.mark_capabilities("echo-message", "batch", "labeled-response")
def testLabeledNoticeResponsesToChannel(self): def testLabeledNoticeResponsesToChannel(self):
self.connectClient( self.connectClient(
@ -265,6 +269,7 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase, cases.OptionalityHelper
).format(number_of_labels), ).format(number_of_labels),
) )
@pytest.mark.react_tag
@cases.mark_capabilities( @cases.mark_capabilities(
"echo-message", "batch", "labeled-response", "message-tags" "echo-message", "batch", "labeled-response", "message-tags"
) )
@ -325,6 +330,7 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase, cases.OptionalityHelper
}, },
) )
@pytest.mark.react_tag
@cases.mark_capabilities( @cases.mark_capabilities(
"echo-message", "batch", "labeled-response", "message-tags" "echo-message", "batch", "labeled-response", "message-tags"
) )
@ -389,6 +395,7 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase, cases.OptionalityHelper
tags={"label": "12345", "+draft/reply": msgid, **ANYDICT}, tags={"label": "12345", "+draft/reply": msgid, **ANYDICT},
) )
@pytest.mark.react_tag
@cases.mark_capabilities( @cases.mark_capabilities(
"echo-message", "batch", "labeled-response", "message-tags" "echo-message", "batch", "labeled-response", "message-tags"
) )

View File

@ -13,6 +13,7 @@ markers =
deprecated deprecated
services services
arbitrary_client_tags arbitrary_client_tags
react_tag
# capabilities # capabilities
account-tag account-tag