tests: Adjust assertion to work with python 3.12

main^2
Georg Krause 2023-12-04 15:17:20 +01:00
parent cadc2a7ca3
commit 621f68e102
1 changed files with 2 additions and 2 deletions

View File

@ -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):