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

Function test_regsiter_with_json

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

Source from the content-addressed store, hash-verified

36
37
38def test_regsiter_with_json(flush_data):
39 img_path = "../unit/dataset/img1.jpg"
40 result = DeepFace.register(
41 img=img_path,
42 model_name="Facenet",
43 detector_backend="mtcnn",
44 connection_details=connection_details_dict,
45 )
46 assert result["inserted"] == 1
47 logger.info("✅ Registered with json test passed.")
48
49
50def test_register_with_string(flush_data):

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected