Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with existing fixtures sticking around between tests #2

Open
croach opened this issue Jul 1, 2014 · 0 comments
Open

Fix issue with existing fixtures sticking around between tests #2

croach opened this issue Jul 1, 2014 · 0 comments

Comments

@croach
Copy link
Owner

croach commented Jul 1, 2014

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant