feat(chat): save and view chat history — admin-only saved_chats, History page, open-a-chat return
This commit is contained in:
@@ -185,6 +185,30 @@ def test_empty_static_dir_is_dev(tmp_path) -> None:
|
||||
assert asset_version(str(empty)) == "dev"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# HTML_PAGES registration
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_html_pages_include_history() -> None:
|
||||
"""Phase 50: the History page is registered in HTML_PAGES — without
|
||||
this entry it would serve unversioned asset refs, which the
|
||||
immutable-for-a-year asset caching would pin to stale CSS after a
|
||||
deploy (the phase-35 git-sources lesson). The entry is ADDED —
|
||||
every pre-phase-50 page stays registered."""
|
||||
for path in (
|
||||
"/",
|
||||
"/index.html",
|
||||
"/sources.html",
|
||||
"/document.html",
|
||||
"/login.html",
|
||||
"/tuning.html",
|
||||
"/git-sources.html",
|
||||
"/history.html",
|
||||
):
|
||||
assert path in caching.HTML_PAGES, f"{path} must be in HTML_PAGES"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# rewrite_asset_refs (task 02)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user