Skip to content

test: realign project-layout asset guard with current README - #106

Merged
mountainowl merged 1 commit into
mainfrom
test/realign-layout-guard
Jun 16, 2026
Merged

test: realign project-layout asset guard with current README#106
mountainowl merged 1 commit into
mainfrom
test/realign-layout-guard

Conversation

@mountainowl

Copy link
Copy Markdown
Owner

Why

Main CI has been red since #100. The docs overhaul dropped the hero render and the stale-branded GitLab MR screenshots from the README, but tests/test_project_layout.py still required those exact image references. pytest stops at the first failed assertion (the README hero reference), which masked that several sibling assertions in the same block were also latently false (both GitLab MR screenshots and the demo gif are no longer in the README either).

What

Rewrite the asset block in test_project_tree_keeps_config_but_not_runtime_checkouts to assert only the assets the README currently links to — the bot avatar preview, the examples doc, and the bot avatar — each checked both for on-disk presence and for an actual README reference. This keeps the broken-link guard meaningful without pinning files the docs no longer use.

Verification

  • uv run pytest -q416 passed, 10 deselected (was 415 passed + 1 failed).
  • uv run ruff check tests/ → clean.

Notes / follow-ups (not in this PR)

The docs overhaul in #100 dropped the hero render and the stale-branded
GitLab MR screenshots from the README, but the layout guard still
required those exact image references — so main CI has been red since
#100 (the only failing assertion was the README hero reference; several
more in the same block were latently false).

Rewrite the asset block to assert only the assets the README currently
links to (avatar preview, examples doc, bot avatar), each checked both
for on-disk presence and for an actual README reference. This keeps the
broken-link guard meaningful without pinning files the docs no longer use.
@mountainowl
mountainowl merged commit 237fe7f into main Jun 16, 2026
4 checks passed
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.

1 participant