Pytest
has setup and teardowns
hooks for module, class, method
.
I want to create my custom test environment in setup (before start of test session) and cleanup after all tests will be finished.
In other words, how can I use hooks like setup_session and teardown_session
?