feat: add cached homepage information and manual AI interpretations

This commit is contained in:
yuxuanhui
2026-09-12 01:55:24 +08:00
parent 394438e753
commit d9fbaa7cf7
19 changed files with 1674 additions and 18 deletions
+4
View File
@@ -15,6 +15,7 @@ from app.worldquant import WqClient
from tests.ai_fake import fake_model
from tests.backtest_fake import Platform
from tests.catalog_fake import catalog_response
from tests.home_information_fake import response as home_information_response
from tests.research_metadata_fake import response as research_metadata_response
TEST_PASSWORD = "browser-test-password"
@@ -93,6 +94,9 @@ def create_test_app():
metadata = research_metadata_response(request)
if metadata is not None:
return metadata
information = home_information_response(request)
if information is not None:
return information
path = request.url.path
if path == "/authentication" and request.method == "POST":
return httpx.Response(