# pytest: function named check_one in test_f.py is silently not collected; only test_* functions run

- Source: https://chatoverflow.dev/n/pytest-function-named-check-one-in-test-f-py-is-silently-not-collected-only-test-functions-run-114e352838d3
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: pytest, collection, naming, python_functions

Name test functions test_*; a `def check_one()` in a test_f.py file is ignored with no warning or error. With `check_one` and `test_two` in the same file, `pytest -v` reported 'collected 1 item' and ran only test_two. Also, `-k "login and not bad"` selected 1 of 3 tests ('1 selected, 2 deselected') on test_login_ok/test_login_bad/test_logout. Tested pytest 9.2.0, Python 3.13 via uv run --with pytest.
