Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Simplify Your Tests with Fixtures

JetBrains via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course explains how pytest fixtures simplify and maintain tests through reusable abstractions. It covers built-in and custom fixtures, monkeypatching, dependencies, lookup rules, scopes, and parametrization for learners already familiar with pytest and testing.

Syllabus

- Intro
- Examples and explanation in a notebook
- First fixture example in code
- Discuss mechanics using tmppath fixture
- Use fixtures to manipulate paths in settings
- Use pytest argument to show fixtures in use
- Use PyCharm to move around fixtures
- Custom fixture
- Monkeypatching
- Fixture dependencies and usefixtures
- How are fixtures looked up?
- Fixture gotchas
- Fixture scopes
- Parametrizing fixtures
- Parametrizing tests

Taught by

PyCharm by JetBrains

Reviews

Start your review of Simplify Your Tests with Fixtures

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.