From 8c5a23536d1a93addab81dc187a3738736d1e0e4 Mon Sep 17 00:00:00 2001 From: "Samuel J. Woodward" Date: Fri, 10 Jan 2025 10:40:02 -0500 Subject: [PATCH] use requirements.txt for testing non-image io objects --- tests/test_represent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_represent.py b/tests/test_represent.py index 1b76dfa..b33def7 100644 --- a/tests/test_represent.py +++ b/tests/test_represent.py @@ -34,7 +34,7 @@ def test_standard_represent_with_io_object(): # Confirm non-image io objects raise exceptions 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")