diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:46:47 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:46:47 +0900 |
| commit | 69e88b3b353f1a2ab7a78259b480e8afbd87669c (patch) | |
| tree | 712de7c4dd0bd16ba853a77d012ebed7c57d91c7 /shared | |
| parent | 678005dc51892c4c1f4cea2730bbf0ec4ebc312d (diff) | |
fix: snapshot delay, env fields, alembic creds, API healthcheck and error handling
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/alembic.ini | 2 | ||||
| -rw-r--r-- | shared/tests/test_db.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/shared/alembic.ini b/shared/alembic.ini index 2c4fd1f..7206a9b 100644 --- a/shared/alembic.ini +++ b/shared/alembic.ini @@ -1,6 +1,6 @@ [alembic] script_location = alembic -sqlalchemy.url = postgresql+asyncpg://postgres:postgres@localhost:5432/trading +sqlalchemy.url = postgresql+asyncpg://trading:trading@localhost:5432/trading [loggers] keys = root,sqlalchemy,alembic diff --git a/shared/tests/test_db.py b/shared/tests/test_db.py index f4cabfd..d33dfe1 100644 --- a/shared/tests/test_db.py +++ b/shared/tests/test_db.py @@ -306,6 +306,7 @@ class TestTransactionContextManager: db = Database("postgresql+asyncpg://host/db") mock_session = AsyncMock() + mock_session.add = MagicMock() mock_session.__aenter__ = AsyncMock(return_value=mock_session) mock_session.__aexit__ = AsyncMock(return_value=False) |
