Test running pytest with multiple workers while maintaining database isolation for each test. Database isolation is acheived by:
- Creating a template database (if it does not already exist)
- Running migrations on the template database
- Creating a new database with a randomly generated name from the template for each test.
- Running pytest tests with multiple parallel workers via pytest-xdist
- Deleting the generated database after each test
docker-compose run --rm test