Question · Python course · Module 12: Final Project

Pytest discovery

How does pytest discover test files by default?

Answer options

  • Files starting with test_ or ending with _test.py
  • All .py files in the project
  • Only files in the /tests folder
  • Files with the .test extension

You can check the correct answer by solving this task in the CodeWorlds game.