diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f4cf0f..95e5b61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: lint: stage: lint - image: python:3.10 + image: python:3.12 before_script: - apt-get update - apt-get install libgirepository1.0-dev -y 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):