From c691182cc43cfa5e1299185c8d171e71db3335a8 Mon Sep 17 00:00:00 2001 From: Plamen Dimitrov Date: Thu, 24 Oct 2024 00:46:49 +0300 Subject: [PATCH] Improve the OpenCV filtering of isolation tests In particular, additional tests make use of OpenCV and need to be skipped if it is disabled. --- tests/test_region_expect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_region_expect.py b/tests/test_region_expect.py index 7af0239a..3e02d94c 100644 --- a/tests/test_region_expect.py +++ b/tests/test_region_expect.py @@ -278,6 +278,7 @@ def test_find_guess_target_image(self) -> None: @unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "Disabled PyQt") @unittest.skipIf(os.environ.get('DISABLE_OCR', "0") == "1", "Disabled OCR") + @unittest.skipIf(os.environ.get('DISABLE_OPENCV', "0") == "1", "Disabled OpenCV") def test_find_guess_target_match(self) -> None: """Test target guess from match file configuration (target has match config).""" self.show_image('all_shapes')