Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 21, 2024
1 parent 19a8907 commit 145d360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/test_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 145d360

Please sign in to comment.