From 996aa3b5db495020f1138625b0075abaef36c1ad Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Wed, 11 Oct 2023 11:29:39 +0100 Subject: [PATCH] Fix push rule tests --- tests/push/test_push_rule_evaluator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/push/test_push_rule_evaluator.py b/tests/push/test_push_rule_evaluator.py index bc967ecf1098..99a85609de2b 100644 --- a/tests/push/test_push_rule_evaluator.py +++ b/tests/push/test_push_rule_evaluator.py @@ -997,7 +997,7 @@ def test_reactions(self) -> None: # Reaction to Brad's message, should be an action for Brad actions = dm_evaluator.run( - FilteredPushRules(PushRules([]), {}, True, True, True, True), + FilteredPushRules(PushRules([]), {}, True, True, True), "@brad:beeper.com", "Brad", ) @@ -1005,7 +1005,7 @@ def test_reactions(self) -> None: # Reaction to Brad's message, should not be an action for Nick actions = dm_evaluator.run( - FilteredPushRules(PushRules([]), {}, True, True, True, True), + FilteredPushRules(PushRules([]), {}, True, True, True), "@nick:beeper.com", "Nick", ) @@ -1025,13 +1025,13 @@ def test_reactions(self) -> None: # Large rooms should never have emoji reaction notifications actions = large_room_evaluator.run( - FilteredPushRules(PushRules([]), {}, True, True, True, True), + FilteredPushRules(PushRules([]), {}, True, True, True), "@brad:beeper.com", "Brad", ) self.assertEqual(actions, []) actions = large_room_evaluator.run( - FilteredPushRules(PushRules([]), {}, True, True, True, True), + FilteredPushRules(PushRules([]), {}, True, True, True), "@nick:beeper.com", "Nick", ) @@ -1068,7 +1068,7 @@ def test_supress_auto_accept_invite(self) -> None: ) actions = evaluator.run( - FilteredPushRules(PushRules([]), {}, True, True, True, True), + FilteredPushRules(PushRules([]), {}, True, True, True), "@brad:beeper.com", "Brad Murray", )