Setup your tests once per session while using pytest and xdist

Using pytest along with xdist can be a powerful way to run tests in parallel.
However, one of the caveats one should be aware of is the ‘one time setup’ (or teardown).

Normally, in pytest, when you want to execute something once per test session before running the tests, you …

Continue reading »