Skip to content

fix: restore removed test coverage alongside UTF-8 encoding changes#134

Open
knoal wants to merge 2 commits into
kcolbchain:mainfrom
knoal:fix/web-lab-utf8-restore-coverage
Open

fix: restore removed test coverage alongside UTF-8 encoding changes#134
knoal wants to merge 2 commits into
kcolbchain:mainfrom
knoal:fix/web-lab-utf8-restore-coverage

Conversation

@knoal

@knoal knoal commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Fix for PR #113 (Make web lab tests use explicit UTF-8 encoding):

The pipeline flagged needs_human due to three coverage regressions alongside the UTF-8 changes:

Fixes:

  1. Restored LAB_PAGES + MULTIPAGE_LAB/SIMULATOR constants — removed in the original PR but the files still exist in the repo.

  2. test_files_exist() — now checks all 13 multipage lab files again (was reduced to only checking LAB and HOME).

  3. test_simulator_links_to_multipage_lab() — fully restored (simulator.html still exists in web/).

  4. test_home_links_to_lab() — restored to check both ./lab/index.html AND ./agents-demo.html links. The original PR dropped the multi-page lab link assertion.

Preserved from original PR:

  • All encoding="utf-8" fixes on read_text() calls
  • pytest.mark.skipif(shutil.which("node") is None) simplification for node check
  • UTF-8 encoding on temp file write in test_js_has_no_syntax_errors

Test results: 35 passed (the original PR had 34 — restored coverage adds back 1 test).

qiann0512-gif and others added 2 commits June 6, 2026 21:27
Reverts three coverage regressions introduced alongside the UTF-8 encoding
changes in PR kcolbchain#113:

1. Restored LAB_PAGES constant and MULTIPAGE_LAB / SIMULATOR paths
2. test_files_exist() now checks all 13 multipage lab files again
3. Restored test_simulator_links_to_multipage_lab() — simulator.html still exists
4. test_home_links_to_lab() checks both ./lab/index.html and ./agents-demo.html links
   (was reduced to only one link — restoring original dual-link check)

The UTF-8 encoding changes from the original PR (encoding="utf-8" on
read_text() calls and pytest.mark.skipif simplification for node) are
preserved.

All 35 tests pass (up from 34 in the original PR, due to restored coverage).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants