mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
use requirements.txt for testing non-image io objects
This commit is contained in:
parent
242bd3eb84
commit
8c5a23536d
@ -34,7 +34,7 @@ def test_standard_represent_with_io_object():
|
|||||||
|
|
||||||
# Confirm non-image io objects raise exceptions
|
# Confirm non-image io objects raise exceptions
|
||||||
with pytest.raises(ValueError, match='Failed to decode image'):
|
with pytest.raises(ValueError, match='Failed to decode image'):
|
||||||
DeepFace.represent(io.BytesIO(open(__file__, 'rb').read()))
|
DeepFace.represent(io.BytesIO(open(r'../requirements.txt', 'rb').read()))
|
||||||
|
|
||||||
logger.info("✅ test standard represent with io object function done")
|
logger.info("✅ test standard represent with io object function done")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user