feat(admin): add admin_actions audit table and log/list functions

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-07-03 09:38:33 +02:00
parent 0209ec0d5c
commit fb62c28e10
6 changed files with 91 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import pytest
@pytest.fixture
def users_db_path(monkeypatch, tmp_path):
from src.auth.db import reset_conn_for_tests
db_path = tmp_path / "users.test.sqlite"
monkeypatch.setenv("USERS_DB_PATH", str(db_path))
reset_conn_for_tests()
yield db_path
reset_conn_for_tests()