-
Notifications
You must be signed in to change notification settings - Fork 341
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
SimpleTestCase
triggers database migrations
#1049
Comments
I'm having the same issue. It will be great to have this fixed because sometimes the difference in testing times between pytest and django tests are big because of this (i.e: django tests take 80s to finish and pytest tests take 145s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default implementation of
SimpleTestCase
disables database queries per default, which is why I'm thinking that migrating the database could conditionally happen depending on the value ofSimpleTestCase.databases
?Ref: https://docs.djangoproject.com/en/4.1/topics/testing/tools/#django.test.SimpleTestCase.databases
The text was updated successfully, but these errors were encountered: