feat(abonnement): table subscriptions + état (#90)

This commit is contained in:
Colin Maudry
2026-06-25 18:50:50 +02:00
parent 007cb28b21
commit b7a79d8d86
3 changed files with 214 additions and 0 deletions
+11
View File
@@ -16,6 +16,17 @@ class FakeResponse:
return _json.dumps(self._payload)
@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()
@pytest.fixture
def fake_httpx(monkeypatch):
"""Capture les appels httpx.request du client Frisbii et renvoie des réponses programmées."""