From 621f68e102bf0aed9d0cccef4347cc90a11a5aa7 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 4 Dec 2023 15:17:20 +0100 Subject: [PATCH] tests: Adjust assertion to work with python 3.12 --- tests/test_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_library.py b/tests/test_library.py index 6be0459..ff90be7 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -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):