mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
fix: an issue regarding the testing procedure has been addressed
This commit is contained in:
parent
2fad7d259c
commit
5e38914a20
@ -2,7 +2,6 @@ import unittest
|
|||||||
from deepface.commons.logger import Logger
|
from deepface.commons.logger import Logger
|
||||||
from deepface.api.src.app import create_app
|
from deepface.api.src.app import create_app
|
||||||
import base64
|
import base64
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
logger = Logger("tests/test_api.py")
|
logger = Logger("tests/test_api.py")
|
||||||
@ -80,6 +79,7 @@ class TestVerifyEndpoint(unittest.TestCase):
|
|||||||
logger.info("✅ representation api test is done")
|
logger.info("✅ representation api test is done")
|
||||||
|
|
||||||
def test_represent_encoded(self):
|
def test_represent_encoded(self):
|
||||||
|
image_path = "dataset/img1.jpg"
|
||||||
with open(image_path, "rb") as image_file:
|
with open(image_path, "rb") as image_file:
|
||||||
encoded_string = "data:image/jpeg;base64," + \
|
encoded_string = "data:image/jpeg;base64," + \
|
||||||
base64.b64encode(image_file.read()).decode("utf8")
|
base64.b64encode(image_file.read()).decode("utf8")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user