refactor: establish standalone application boundary

This commit is contained in:
leefer
2026-08-03 21:42:25 +08:00
parent cc5fb8d73e
commit e1e76cd51e
324 changed files with 63090 additions and 44743 deletions
+6 -3
View File
@@ -4,7 +4,10 @@ import unittest
from pathlib import Path
from server import DashboardService
from tests.preservation_helpers import reassembled_frontend_runtime
from tests.frontend_test_helpers import (
assembled_frontend_runtime,
assembled_frontend_document,
)
class SearchDatabaseStub:
@@ -79,8 +82,8 @@ class GlobalSearchTests(unittest.TestCase):
def test_frontend_reuses_full_stock_detail_and_renders_market_daily_k(self):
static_dir = Path(__file__).resolve().parents[1] / "frontend"
html = (static_dir / "index.html").read_text(encoding="utf-8")
script = reassembled_frontend_runtime()
html = assembled_frontend_document()
script = assembled_frontend_runtime()
self.assertIn('id="globalSearchButton"', html)
self.assertIn('id="globalSearchDialog"', html)