In accordance with pytest’s conventions for Python tests and recommendations on test layout, test files are Python files starting with test_ or ending with _test.py and should be placed in a folder called tests at the root of your project.

This rule therefore simply checks whether all test files in your projects are indeed in this tests folder at the root of your project.