Skip to content

test: scope pytest discovery to tests directory - #397

Open
dajiaohuang wants to merge 1 commit into
OpenBMB:mainfrom
dajiaohuang:fix/pytest-testpaths
Open

dajiaohuang wants to merge 1 commit into
OpenBMB:mainfrom
dajiaohuang:fix/pytest-testpaths

Conversation

@dajiaohuang

Copy link
Copy Markdown

Plain pytest collection imported scripts/test_pick_runtime_dtype.py, whose top-level exit aborted collection before running the repository test suite. Configure pytest to collect only tests/ so the standalone helper is not imported during normal test runs. Validation: python -m pytest -q -k "not test_cli_validate_exit_code" (54 passed, 1 skipped, 1 deselected); python scripts/test_pick_runtime_dtype.py (22/22 passed).

This branch has not been deployed

No deployments
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