Python Test/Hello, pytest!

  • $19

Hello, pytest!

  • Course
  • 16 Lessons

Learn core pytest features fast. 1.5 hours of content

Core pytest Features

  • Test Functions

  • Parametrization

  • Built in Fixtures

  • Custom Fixtures

  • Markers

  • Configuration

Design for Testability

Bonus topics

  • Modular Code

  • Isolating Complexity

  • Making your API easy to test

  • Having a test/debug API, even if you don't have a public API

Contents

Intro
Preview
Test Functions
hello.py
Builtin Fixture capsys
App vs API testing
CLI Args for hello.py
Parametrized Tests
Custom Fixtures
Markers
Separating src and tests
Sharing Fixtures
Design for Testability
Run one test case
Thank You
pytest flags used
Final source code