From 5e38914a20c165d18dd0637303fe949c7e9d284b Mon Sep 17 00:00:00 2001 From: Reza Karbasi Date: Tue, 19 Mar 2024 15:44:07 +0330 Subject: [PATCH] fix: an issue regarding the testing procedure has been addressed --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index c64f3c4..92e3437 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -2,7 +2,6 @@ import unittest from deepface.commons.logger import Logger from deepface.api.src.app import create_app import base64 -import json logger = Logger("tests/test_api.py") @@ -80,6 +79,7 @@ class TestVerifyEndpoint(unittest.TestCase): logger.info("✅ representation api test is done") def test_represent_encoded(self): + image_path = "dataset/img1.jpg" with open(image_path, "rb") as image_file: encoded_string = "data:image/jpeg;base64," + \ base64.b64encode(image_file.read()).decode("utf8")