From 7cbe825d81b3c2e6e7d7e22273d9598a5ad78965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= Date: Thu, 5 Jan 2023 12:53:35 +0200 Subject: [PATCH] ci: Run tests on Python 3.11 --- .github/workflows/test.yml | 1 + tests/test_job.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 730b8ab4..594b86a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,7 @@ jobs: - '3.8' - '3.9' - '3.10' + - '3.11' poetry-version: - '1.1.15' steps: diff --git a/tests/test_job.py b/tests/test_job.py index abe8bcb2..fe271f75 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -55,7 +55,7 @@ def test_get_source_project_when_is_fork(self): def test_get_mr_ci_status(self, version, use_merge_request_pipelines): with patch('marge.job.Pipeline', autospec=True) as pipeline_class: pipeline_success = [ - Mock(spec=pipeline_class, sha='abc', status='success'), + Mock(sha='abc', status='success'), ] pipeline_class.pipelines_by_branch.return_value = pipeline_success pipeline_class.pipelines_by_merge_request.return_value = pipeline_success