MCPcopy
hub / github.com/serengil/deepface / test_register_with_envvar

Function test_register_with_envvar

tests/integration/test_postgres_register.py:63–71  ·  view source on GitHub ↗
(flush_data)

Source from the content-addressed store, hash-verified

61
62@patch.dict(os.environ, {"DEEPFACE_POSTGRES_URI": connection_details_str})
63def test_register_with_envvar(flush_data):
64 img_path = "../unit/dataset/img1.jpg"
65 result = DeepFace.register(
66 img=img_path,
67 model_name="Facenet",
68 detector_backend="mtcnn",
69 )
70 assert result["inserted"] == 1
71 logger.info("✅ Registered with env var test passed.")
72
73
74def test_register_with_connection(flush_data):

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected