From 824ec0c95cb39d224df8806d1f5325dbfacc652a Mon Sep 17 00:00:00 2001 From: Benjamin Kirkbride Date: Fri, 7 Jul 2023 18:13:41 -0400 Subject: [PATCH] moderate improvement to useful test --- tests/test_actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_actions.py b/tests/test_actions.py index 0cf718537..711e8440d 100644 --- a/tests/test_actions.py +++ b/tests/test_actions.py @@ -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`"