From cadc2a7ca39f1d5ae3752e931ed7b5f7aa4b4c94 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 4 Dec 2023 11:33:10 +0000 Subject: [PATCH 1/2] chore(deps): update python docker tag to v3.12 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 621f68e102bf0aed9d0cccef4347cc90a11a5aa7 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 4 Dec 2023 15:17:20 +0100 Subject: [PATCH 2/2] 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):