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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the power of fixtures in simplifying and maintaining tests in this comprehensive webinar. Learn how fixtures solve common testing problems and enhance your testing workflow. Dive into practical examples, starting with basic fixture usage and progressing to advanced topics like monkeypatching, fixture dependencies, and parametrization. Discover how to effectively use PyCharm for fixture management and navigation. Gain insights into fixture lookup mechanisms, potential pitfalls, and scope considerations. Suitable for developers familiar with pytest and testing concepts, but with limited experience in fixtures. Presented by Oliver Bestwalter, an experienced Open Source developer and Python enthusiast, this session provides valuable knowledge to improve your testing practices and produce better software more efficiently.

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.