February 2022
Intermediate to advanced
274 pages
6h 28m
English
The pytest fixture implementation is flexible enough to use fixtures like building blocks to build up test setup and teardown. Because fixtures are so flexible, I use them heavily to push as much of the setup of my tests into fixtures as I can.
In this chapter, we looked at pytest fixtures you write yourself, but pytest provides loads of useful fixtures for you to use right out of the box. We’ll take a closer look at some of the builtin fixtures in the next chapter.
Read now
Unlock full access