O'Reilly logo
  • Chris Kang thinks this is interesting:

ch3/b/tasks_proj/tests/conftest.py

From

Cover of Python Testing with pytest

Note

The 2 fixtures here can be improved as illustrated in the example on the bottom below where it uses parameters to pass int different type of DB into the fixture rather than hard coding (eg. "tiny" as in this example).