Skip to content

Rename test files to the names the healthcheck imports - #11

Merged
m-messer merged 1 commit into
mainfrom
fix-test-filenames
Nov 6, 2026
Merged

m-messer merged 1 commit into
mainfrom
fix-test-filenames

Conversation

@m-messer

@m-messer m-messer commented Nov 6, 2026

Copy link
Copy Markdown
Member

The base layer's healthcheck imports ..evaluation_tests and ..preview_tests, but the template ships evaluation_test.py and preview_test.py. Every function created from this template therefore reports test_import_evaluation_tests errors from healthcheck. ArraySymbolicEqual hit the same problem during its 3.12 move (lambda-feedback/ArraySymbolicEqual#20).

  • Rename app/evaluation_test.py → app/evaluation_tests.py and app/preview_test.py → app/preview_tests.py (contents unchanged)
  • Update the COPY lines in app/Dockerfile and the repository structure in the README (the "Getting Started" section already used the _tests names)
  • Add pytest.ini with python_files = test_*.py *_test.py *_tests.py, because pytest's default patterns don't match *_tests.py and CI would otherwise collect no tests

Tested locally on Python 3.12: pytest collects and passes both tests.

🤖 Generated with Claude Code

The base layer's healthcheck imports `..evaluation_tests` and
`..preview_tests`, so with the old `*_test.py` names it reports import
errors in every function created from this template. Rename the files,
update the Dockerfile and README, and add a pytest.ini so pytest still
collects the `*_tests.py` files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@m-messer
m-messer merged commit d2a594a into main Nov 6, 2026
1 check passed
@m-messer
m-messer deleted the fix-test-filenames branch November 6, 2026 16:05
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