From df4f1a538d5d755f0bba372b1ab04b200ac44a49 Mon Sep 17 00:00:00 2001 From: Yingda Chen Date: Fri, 19 Aug 2022 14:01:06 +0800 Subject: [PATCH] [to #42322933]disable ocr test temporarily --- tests/pipelines/test_ocr_recognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pipelines/test_ocr_recognition.py b/tests/pipelines/test_ocr_recognition.py index d86c2266..29acaced 100644 --- a/tests/pipelines/test_ocr_recognition.py +++ b/tests/pipelines/test_ocr_recognition.py @@ -26,12 +26,12 @@ class OCRRecognitionTest(unittest.TestCase): result = pipeline(input_location) print('ocr recognition results: ', result) - @unittest.skipUnless(test_level() >= 0, 'skip test in current test level') + @unittest.skipUnless(test_level() >= 2, 'skip test in current test level') def test_run_with_model_from_modelhub(self): ocr_recognition = pipeline(Tasks.ocr_recognition, model=self.model_id) self.pipeline_inference(ocr_recognition, self.test_image) - @unittest.skipUnless(test_level() >= 1, 'skip test in current test level') + @unittest.skipUnless(test_level() >= 2, 'skip test in current test level') def test_run_with_model_from_modelhub_PILinput(self): ocr_recognition = pipeline(Tasks.ocr_recognition, model=self.model_id) imagePIL = PIL.Image.open(self.test_image)