Set up an extremely lightweight set of tests for the user infra implementation

This commit is contained in:
Campbell Alden 2026-09-03 22:58:29 +09:00
parent 0d270c9cfb
commit 32e3fe04a2
5 changed files with 47 additions and 0 deletions

8
src/infra/db_test.py Normal file
View file

@ -0,0 +1,8 @@
from src.infra import Base
from sqlalchemy import Engine, create_engine
def mock_db() -> Engine:
engine = create_engine('sqlite:///:memory:', echo=True)
Base.metadata.create_all(engine)
return engine