Skip to content
Snippets Groups Projects
Commit 621f68e1 authored by Georg Krause's avatar Georg Krause
Browse files

tests: Adjust assertion to work with python 3.12

parent cadc2a7c
Branches
No related tags found
1 merge request!18chore(deps): update python docker tag to v3.12
Pipeline #34086 passed
......@@ -112,11 +112,11 @@ def test_to_ref(type):
)
def test_browse_routing(library, path, expected_handler, mocker, remaining):
handler = mocker.patch.object(
library, expected_handler, return_value=("test", False)
library, expected_handler, return_value=("test", False), autospec=True
)
assert library.browse(path) == "test"
assert handler.called_once_with(remaining)
handler.assert_called_once_with(remaining)
def test_browse_favorites_root(library):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment