Expand description
The Python mocking mechanism and style lints behind integration lint, plus the Python
arm of unit lint. Each test file is parsed with rustpython_parser and walked with a
Visitor; the rules themselves are documented under docs/reference/checks/.
Re-exports§
pub use crate::violation::Violation;
Functions§
- find_
suite_ violations - Every lint violation in
package_root’s suite tiers, sorted by(file, line).tests/integration/andtests/e2e/both run first-party code for real; a*_test.pyundertests/outside them isunknown-tierrather than silently unscanned. - find_
unit_ isolation_ violations - Every
unmocked-collaboratorviolation underroot— a collaborator a*_test.pyimports without mocking it — sorted by(file, line). First-party is the dist’s own package ([first_party_package]); a tree that declares none reports nothing. - find_
violations - Every lint violation in the Python test files under
root, sorted by(file, line). A Python test file is*_test.pyorconftest.py, where fixtures live; a legacytest_*.pyis ordinary source. A file that cannot be read or parsed is an error.