From 18346d8deb858cc77d166ffea8ef76d9c9d48bfe Mon Sep 17 00:00:00 2001 From: historia Date: Sat, 12 Sep 2026 16:48:55 -0400 Subject: feat: automatic stereo mixdown --- lib/project/tests/test_gui_assets.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/project/tests/test_gui_assets.py') diff --git a/lib/project/tests/test_gui_assets.py b/lib/project/tests/test_gui_assets.py index b7f949a..961f15e 100644 --- a/lib/project/tests/test_gui_assets.py +++ b/lib/project/tests/test_gui_assets.py @@ -25,8 +25,8 @@ class AssetReferences(HTMLParser): self.stylesheets.append(attrs.get("href")) -def test_gui_packaged_external_assets_and_guided_workflow(tmp_path): - with TestClient(create_app(tmp_path, 8765, "test-token"), base_url="http://127.0.0.1:8765") as client: +def test_gui_packaged_external_assets_and_condensed_workflow(tmp_path): + with TestClient(create_app(8765, output_dir=tmp_path), base_url="http://127.0.0.1:8765") as client: page = client.get("/") assert page.status_code == 200 parser = AssetReferences() @@ -35,12 +35,14 @@ def test_gui_packaged_external_assets_and_guided_workflow(tmp_path): assert parser.stylesheets == ["/assets/style.css"] assert not parser.inline_attributes assert "unsafe-inline" not in page.headers["Content-Security-Policy"] - assert "Approximate sound comparison, not an exact export preview." in page.text - for name in ("Choose your recording", "Try a short passage", "Compare the sound", "Export the full recording"): - assert name in page.text + assert "approximate, not an exact export preview" in page.text + for name in ("Recording", "Settings", "Compare", "Export", "Activity"): + assert f">{name}" in page.text or name in page.text + for banned in ("#token", "private by design", "Make it sound like you"): + assert banned not in page.text for path in parser.scripts + parser.stylesheets + ["/assets/state.js"]: response = client.get(path) assert response.status_code == 200, path assert response.headers["Cache-Control"] == "no-store" assert len(response.content) > 100 - assert client.get("/api/schema").status_code == 401 + assert client.get("/api/schema").status_code == 200 -- cgit v1.2.3