Skip to content

Commit e75846b

Browse files
committed
Quick fix to PluginManager.register_action test
1 parent b7d39c8 commit e75846b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/plugin_manager/test_plugin_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def _spy_event_adapter_validate_json(mocker: pytest_mock.MockerFixture) -> None:
4343

4444
def test_plugin_manager_register_action(plugin_manager: PluginManager) -> None:
4545
"""Test that an action can be registered in the PluginManager."""
46-
assert len(plugin_manager._handlers_registry._plugin_actions) == 0
46+
assert len(plugin_manager._handlers_registry._plugin_event_handler_catalogs) == 0
4747

4848
action = Action("my-fake-action-uuid")
4949
plugin_manager.register_action(action)
5050

51-
assert len(plugin_manager._handlers_registry._plugin_actions) == 1
52-
assert plugin_manager._handlers_registry._plugin_actions[0] == action
51+
assert len(plugin_manager._handlers_registry._plugin_event_handler_catalogs) == 1
52+
assert plugin_manager._handlers_registry._plugin_event_handler_catalogs[0] == action
5353

5454

5555
def test_plugin_manager_register_event_listener(plugin_manager: PluginManager) -> None:

0 commit comments

Comments
 (0)