From 145d3601a2bacb71a7aed32309514fca1bd7f10b Mon Sep 17 00:00:00 2001 From: miro Date: Mon, 21 Oct 2024 15:50:33 +0100 Subject: [PATCH] tests --- test/unittests/test_namespace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittests/test_namespace.py b/test/unittests/test_namespace.py index fb47411..15d5a97 100644 --- a/test/unittests/test_namespace.py +++ b/test/unittests/test_namespace.py @@ -258,7 +258,7 @@ def test_handle_delete_page_active_namespace(self): self.namespace_manager.loaded_namespaces = dict(foo=namespace) self.namespace_manager.active_namespaces = [namespace] - message_data = {"__from": "foo", "page": ["bar"]} + message_data = {"__from": "foo", "page_names": ["bar"]} message = Message("gui.clear.namespace", data=message_data) self.namespace_manager.handle_delete_page(message) namespace.remove_pages.assert_called_with([0]) @@ -302,7 +302,7 @@ def test_handle_show_page(self): # Legacy message message = Message("gui.page.show", data={"__from": "foo", "__idle": 10, - "page": ["bar", "test/baz"]}) + "page_names": ["bar", "test/baz"]}) self.namespace_manager.handle_show_page(message) self.namespace_manager._activate_namespace.assert_called_with("foo") self.namespace_manager._load_pages.assert_called_with(["pages"], None)