From c585c876335c6e61fe87052f89133dc74eb623ab Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 18 Nov 2023 21:12:09 +0100 Subject: [PATCH] Remove two annotations in tests that block using older pytest versions --- tests/test_base/test_base_shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_base/test_base_shared.py b/tests/test_base/test_base_shared.py index bbf706e0..d699da6f 100644 --- a/tests/test_base/test_base_shared.py +++ b/tests/test_base/test_base_shared.py @@ -67,7 +67,7 @@ def testBaseSharedData_Init(): @pytest.mark.base -def testBaseSharedData_Projects(fncPath, caplog: pytest.LogCaptureFixture): +def testBaseSharedData_Projects(fncPath, caplog): """Test SharedData handling of projects.""" project = NWProject() buildTestProject(project, fncPath) @@ -123,7 +123,7 @@ def testBaseSharedData_Projects(fncPath, caplog: pytest.LogCaptureFixture): @pytest.mark.base -def testBaseSharedData_Alerts(monkeypatch, caplog: pytest.LogCaptureFixture): +def testBaseSharedData_Alerts(monkeypatch, caplog): """Test SharedData class alert helper functions.""" monkeypatch.setattr(QMessageBox, "exec_", lambda *a: None) monkeypatch.setattr(QMessageBox, "result", lambda *a: QMessageBox.Yes)