Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix push rule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Oct 11, 2023
1 parent cd5383d commit 996aa3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/push/test_push_rule_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,15 +997,15 @@ 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",
)
self.assertTrue("notify" in actions)

# 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",
)
Expand All @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit 996aa3b

Please sign in to comment.