Skip to content

test: move #174 test into tests/unit (layout cleanup) - #234

Merged
amar-python merged 2 commits into
mainfrom
fix/174-test-layout-and-catalogue
Nov 10, 2026
Merged

amar-python merged 2 commits into
mainfrom
fix/174-test-layout-and-catalogue

Conversation

@amar-python

@amar-python amar-python commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Moves #204's test into the folder tests/README.md prescribes. No longer a fix for a red main.

History, so the description matches reality

When opened, this fixed a red main: the free-tier job failed at the merge of #204 (018edc2) because docs/TEST_CASES.md did not list tests/test_docker_image_secrets.py (reproduced: python3 scripts/test_catalogue.py --check failed on main). That is no longer true: #224 regenerated the catalogue after merging main, so main lists the file at its flat path and all four of main's CI jobs pass.

What this still does

  • Move tests/test_docker_image_secrets.py to tests/unit/ (it needs no database and no network; tests/README.md puts that in unit/, and test: reorganise tests/ into category folders (#167) #221 retired the flat layout) and point its ROOT one level deeper (parents[2], as its siblings do).
  • Regenerate docs/TEST_CASES.md so the entry moves with the file.

Six tests, unchanged. Purely a layout change.

Verification (merged with current main)

tests/unit/test_docker_image_secrets.py     6 passed
unit / regression / security / snapshot     PASSED 282 / FAILED 0 / ERROR 0 / SKIPPED 0
make lint                                   flake8 clean, bandit clean
make health                                 86 passed, 0 failed
python3 scripts/test_catalogue.py --check   PASS

Note

docs/TEST_CASES.md is generated and CI gates on it, so any PR that adds or moves a test conflicts with it whenever main regenerates it first. If this sits unmerged it will need regenerating again. Closing it is also reasonable: the benefit is only that one file lives in the right folder.

https://claude.ai/code/session_011T6WqjTEDRRQGLEYPPFVXx


Generated by Claude Code

main's free-tier job fails at the merge of #204 (018edc2) on the "Test
catalogue check" step: docs/TEST_CASES.md does not list
test_docker_image_secrets.py. #204's own CI was green because it ran before
main gained that gate, and #204's test file was written for the flat tests/
layout that #221 replaced.

- Move tests/test_docker_image_secrets.py to tests/unit/ (it needs nothing: no
  database, no network), and point its ROOT one level deeper.
- Regenerate docs/TEST_CASES.md with scripts/test_catalogue.py.

Reproduced and cleared: `python3 scripts/test_catalogue.py --check` fails on
main and passes here. Free tier in CI order: 257 passed, 0 failed, 0 skipped;
lint, health, catalogue check and evals tier P clean.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011T6WqjTEDRRQGLEYPPFVXx
main (#224) regenerated docs/TEST_CASES.md after #204 merged, which cleared the
red free-tier job this branch was opened to fix. What remains is the file move.
The catalogue conflict is the only one; it is generated and gated by
`test_catalogue.py --check`, so it is regenerated, not merged by hand.

Free tier on the merged tree: 282 passed, 0 failed, 0 skipped; lint, health and
the catalogue check clean.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011T6WqjTEDRRQGLEYPPFVXx
@amar-python amar-python changed the title fix: put #174 test in tests/unit and regenerate the test catalogue (red main) test: move #174 test into tests/unit (layout cleanup) Nov 10, 2026
@amar-python
amar-python marked this pull request as ready for review November 10, 2026 07:48
@amar-python
amar-python merged commit 2b79f13 into main Nov 10, 2026
4 checks passed
@amar-python
amar-python deleted the fix/174-test-layout-and-catalogue branch November 10, 2026 07:49
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