CISSP MasterClass with a true CAT exam simulator
Learn Excel and Financial Modeling the Way Finance Teams Actually Use Them
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