Skip to content

Restrict pytest collection to the tests directory - #690

Merged
robbinjanssen merged 1 commit into
robbinjanssen:mainfrom
adamjernst:pytest-testpaths
Sep 11, 2026
Merged

Restrict pytest collection to the tests directory#690
robbinjanssen merged 1 commit into
robbinjanssen:mainfrom
adamjernst:pytest-testpaths

Conversation

@adamjernst

Copy link
Copy Markdown
Contributor

A bare pytest (as run by the pre-commit hook) collects from the repo root and picks up test_output.py, the manual API smoke-test script, which fails to import without a local config module. CI already passes the tests directory explicitly; set testpaths so the hook and local runs behave the same way.

A bare `pytest` (as run by the pre-commit hook) collects from the repo
root and picks up test_output.py, the manual API smoke-test script,
which fails to import without a local config module. CI already passes
the tests directory explicitly; set testpaths so the hook and local
runs behave the same way.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eer1ZnSZ8sz5oh8pq3AQT2
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d1701a2) to head (75d4b59).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #690   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          522       522           
  Branches        67        67           
=========================================
  Hits           522       522           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@robbinjanssen robbinjanssen added the ci Work that improves the continue integration. label Sep 11, 2026
@robbinjanssen
robbinjanssen merged commit 16e7390 into robbinjanssen:main Sep 11, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Work that improves the continue integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants