How to create arrange and clean up fixtures with Pytest and SQLAlchemy
I’m working on a project that involves database interactions with Python that I’m resolving using the SQLAlchemy ORM. For the testing I’ll be using the pytest framework.
SQLAlchemy – Delete model classes
I’m dynamically creating model classes in my unit tests using pytest, like so: