Question · Python course · Module 12: Final Project

Pytest run

How do you run tests in a specific file using pytest?

Answer options

  • pytest test_file.py
  • python run tests
  • test --file test_file.py
  • run pytest test_file

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