refactor: split backend domains and add API behavior coverage

This commit is contained in:
3252a8
2026-05-13 18:38:10 +03:00
parent a96007d48a
commit 7401649841
103 changed files with 10558 additions and 9832 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ async def init_db(settings: Settings, session_factory: sessionmaker):
logging.warning("init_db: async_engine was None, re-initializing via init_db_connection.")
raise RuntimeError(
"async_engine is not initialized. Call init_db_connection and get session_factory first."
"async_engine is not initialized. Call init_db_connection and get session_factory first." # noqa: E501
)
async with async_engine.begin() as conn:
@@ -136,7 +136,7 @@ async def init_db(settings: Settings, session_factory: sessionmaker):
)
WHERE s.is_active = TRUE
AND s.tariff_key IS NULL
"""
""" # noqa: E501
),
{
"tariff_key": default_tariff.key,