Skip to content

Commit

Permalink
moderate improvement to useful test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-kirkbride committed Jul 7, 2023
1 parent 0ffe9cf commit 824ec0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ def test_action_registry():
assert action in all_actions.values()

assert actions.query_actions("nonexistent action") is None

all_actions["garbage"] = "mean lean fighting machine" # type: ignore
assert (
actions.query_actions("garbage") is None
), "`all_actions` should be a copy, changes to it should not effect `_actions`"

0 comments on commit 824ec0c

Please sign in to comment.