filmov
tv
8 Powerful Features You Didn’t Know About the Fixtures of Pytest
Показать описание
In this video I will show 8 powerful features about the fixtures of Pytest. Those are the most important features to know about the fixtures of Pytest, such as the scopes, the yield keyword and the built-in fixtures.
Content:
* what's the behavior of the fixtures;
* what is the conftest file for;
* how to run fixtures for every test automatically with the autouse;
* how to use the fixtures to run a tear down or clean up code with the yield keyword;
* what are the scopes of the fixtures;
* how to use the fixtures as factories;
* how to parametrize fixtures;
* and finally, some useful built-in fixtures.
Content:
* what's the behavior of the fixtures;
* what is the conftest file for;
* how to run fixtures for every test automatically with the autouse;
* how to use the fixtures to run a tear down or clean up code with the yield keyword;
* what are the scopes of the fixtures;
* how to use the fixtures as factories;
* how to parametrize fixtures;
* and finally, some useful built-in fixtures.