From 8f421371139fdca2647bc8387820d7f7d9eff3d6 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sun, 29 Jan 2023 23:46:39 +0000 Subject: [PATCH] cleaner codes --- tests/unit_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index 1acbe45..8ef078b 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -6,6 +6,8 @@ import pandas as pd import cv2 from deepface import DeepFace +# pylint: disable=consider-iterating-dictionary + print("-----------------------------------------") warnings.filterwarnings("ignore") @@ -93,8 +95,7 @@ def test_cases(): assert "h" in objs[0]["facial_area"].keys() assert isinstance(objs[0]["embedding"], list) assert len(objs[0]["embedding"]) == 2622 # embedding of VGG-Face - except Exception as err: - print(str(err)) + except: exception_thrown = True assert exception_thrown is False