Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 923 Bytes

python-include-tests.md

File metadata and controls

7 lines (5 loc) · 923 Bytes

Some level of testing should be done for each Python package expression.

If the checkPhase reports there are no tests, it might be necessary to:

  • If the tests are in a different directory than tests/, tell pytest or pytestCheckHook where to find them.
  • If the upstream source code repository contains tests but they are not shipped with package on PyPI, switch to fetching from the repository (e.g. using fetchFromGitHub) and open an issue upstream asking to ship tests in the PyPI packages (example).
  • If the package does not contain any tests, add doCheck = false; with a comment that there are no tests, and a pythonImportsCheck as a smoke test.