diff --git a/tests/test_represent.py b/tests/test_represent.py index 91a24b6..d0a215d 100644 --- a/tests/test_represent.py +++ b/tests/test_represent.py @@ -21,15 +21,15 @@ def test_standard_represent(): def test_standard_represent_with_io_object(): img_path = "dataset/img1.jpg" - defualt_embedding_objs = DeepFace.represent(img_path) + default_embedding_objs = DeepFace.represent(img_path) io_embedding_objs = DeepFace.represent(open(img_path, 'rb')) - assert defualt_embedding_objs == io_embedding_objs + assert default_embedding_objs == io_embedding_objs # Confirm non-seekable io objects are handled properly io_obj = io.BytesIO(open(img_path, 'rb').read()) io_obj.seek = None no_seek_io_embedding_objs = DeepFace.represent(io_obj) - assert defualt_embedding_objs == no_seek_io_embedding_objs + assert default_embedding_objs == no_seek_io_embedding_objs logger.info("✅ test standard represent with io object function done")