tests: Adjust assertion to work with python 3.12
parent
cadc2a7ca3
commit
621f68e102
|
@ -112,11 +112,11 @@ def test_to_ref(type):
|
||||||
)
|
)
|
||||||
def test_browse_routing(library, path, expected_handler, mocker, remaining):
|
def test_browse_routing(library, path, expected_handler, mocker, remaining):
|
||||||
handler = mocker.patch.object(
|
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 library.browse(path) == "test"
|
||||||
assert handler.called_once_with(remaining)
|
handler.assert_called_once_with(remaining)
|
||||||
|
|
||||||
|
|
||||||
def test_browse_favorites_root(library):
|
def test_browse_favorites_root(library):
|
||||||
|
|
Loading…
Reference in New Issue