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

Function flush_data

tests/integration/test_postgres_register.py:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26# pylint: disable=unused-argument
27@pytest.fixture
28def flush_data():
29 conn = psycopg.connect(**connection_details_dict)
30 cur = conn.cursor()
31 cur.execute("DELETE FROM embeddings;")
32 conn.commit()
33 cur.close()
34 conn.close()
35 logger.debug("🗑️ Embeddings data flushed.")
36
37
38def test_regsiter_with_json(flush_data):

Callers

nothing calls this directly

Calls 2

debugMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected