Terminus

Tools / Testing

pytest

The standard way to write tests in Python. Plain asserts, fixtures and parametrised tests.

About 6 hours of study. It builds on Programming in Python.

Where to learn it

Read
pytest: Get Started

The pytest developers

Get Started, then the how-to guides on fixtures and parametrizing

Watch
Pytest Tutorial: How to Test Python Code

freeCodeCamp.org

The whole video

Practise

No practice set picked yet.

Suggest one

Wrong chapter, dead link, or know something better? Tell us on GitHub.

Your route to pytest

Pick where you’re starting from. Anything your background already covers is left out, and the rest is put in order.

2 stops to go, about 46 hours of study.

Open a stop to see the book, the video course and the practice for it. Tick its circle when you've finished.

  1. 40 h

    Programming. Ready to start.

  2. Tool6 h

    Programming. After Programming in Python.

That's the whole route to pytest.