aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2022-10-25 10:56:13 -0400
committerGravatar Ionite <[email protected]>2022-10-25 10:56:13 -0400
commit8023741e77394877cafda526fc2cbca50aaa77db (patch)
tree7222573bf3d71f30410a00d0f50ed085c5fab3e6 /tests
parentAdd args split max limit (diff)
Update tests to work with rules arg fix
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/info/test_information.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py
index e016ae8ed..0444ca465 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}),
- ("second third unknown 999", {2, 3})
+ ("1 hello 2 second", {1, 2}),
+ ("second third unknown 999", None)
]
for raw_user_input, expected_matched_rule_numbers in test_cases:
@@ -637,8 +637,7 @@ class RuleCommandTests(unittest.IsolatedAsyncioTestCase):
async def test_return_default_rules_when_no_input_or_no_match_are_found(self):
test_cases = [
("", None),
- ("hello 2 second", None),
- ("hello 999", None),
+ ("hello abc", None),
]
for raw_user_input, expected_matched_rule_numbers in test_cases: