If you use fixtures with a class that does it's own setup and teardown any tables that were already created stick around and that means that any data within them stick around as well. We should use the 'checkfirst' parameter on db.create_all and set it to False to make sure it creates all tables from scratch each time. Though, we might want to consider not using it on class level fixtures (need more research here).
If you use fixtures with a class that does it's own setup and teardown any tables that were already created stick around and that means that any data within them stick around as well. We should use the 'checkfirst' parameter on db.create_all and set it to False to make sure it creates all tables from scratch each time. Though, we might want to consider not using it on class level fixtures (need more research here).