aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2022-10-25 11:19:05 -0400
committerGravatar Ionite <[email protected]>2022-10-25 11:19:05 -0400
commit8f68607654e92e1ff1c026d37f339a983ebe8840 (patch)
treed58de5005ed75d97264cde28bad636c5572e2061 /tests
parentUpdate tests to work with rules arg fix (diff)
Reverse changes to invalid arg break
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/info/test_information.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py
index 0444ca465..65595e959 100644
--- a/tests/bot/exts/info/test_information.py
+++ b/tests/bot/exts/info/test_information.py
@@ -625,8 +625,8 @@ class RuleCommandTests(unittest.IsolatedAsyncioTestCase):
test_cases = [
("1 2 first", {1, 2}),
- ("1 hello 2 second", {1, 2}),
- ("second third unknown 999", None)
+ ("1 hello 2 second", {1}),
+ ("second third unknown 999", {2, 3}),
]
for raw_user_input, expected_matched_rule_numbers in test_cases:
@@ -637,7 +637,8 @@ class RuleCommandTests(unittest.IsolatedAsyncioTestCase):
async def test_return_default_rules_when_no_input_or_no_match_are_found(self):
test_cases = [
("", None),
- ("hello abc", None),
+ ("hello 2 second", None),
+ ("hello 999", None),
]
for raw_user_input, expected_matched_rule_numbers in test_cases: