袁聪的最后一次完善更新

This commit is contained in:
2026-09-14 18:13:10 +08:00
parent 54055b4328
commit 2548c39c6b
50 changed files with 2818 additions and 267 deletions
@@ -1,3 +1,5 @@
from datetime import date
import pytest
from app.core.contracts import RequestContext
@@ -16,6 +18,12 @@ def context(**updates):
return base.model_copy(update=updates)
def test_query_rows_convert_date_values_to_json_strings() -> None:
row = FinancialNL2SQLService._jsonable({"nav_date": date(2026, 9, 10)})
assert row == {"nav_date": "2026-09-10"}
@pytest.mark.asyncio
async def test_generates_read_only_market_sql_with_product_filter() -> None:
result = await FinancialNL2SQLService().query(