feat: add cached homepage information and manual AI interpretations
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user