diff options
| author | historia <historiavg@proton.me> | 2026-09-12 16:48:55 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-12 16:48:55 -0400 |
| commit | 18346d8deb858cc77d166ffea8ef76d9c9d48bfe (patch) | |
| tree | e11bb5951a047ed372053906dcbb97b8651cee84 /lib/project/tests/test_gui_assets.py | |
| parent | 464edbc4fd658728f06d3a7d98340aa28ff3e3ec (diff) | |
| download | producer-18346d8deb858cc77d166ffea8ef76d9c9d48bfe.tar.gz | |
feat: automatic stereo mixdown
Diffstat (limited to 'lib/project/tests/test_gui_assets.py')
| -rw-r--r-- | lib/project/tests/test_gui_assets.py | 14 |
1 files changed, 8 insertions, 6 deletions
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}</h2>" 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 |
