()
| 26 | # pylint: disable=unused-argument |
| 27 | @pytest.fixture |
| 28 | def 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.info("🗑️ Embeddings data flushed.") |
| 36 | |
| 37 | |
| 38 | @pytest.fixture |