You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, pytest runs the setup_databases methods from Django's DiscoverRunner to set up the database. It should support setup_databases from custom test runners as defined in the TEST_RUNNER setting.
The text was updated successfully, but these errors were encountered:
matthewleon
changed the title
support custom test runners for Django unittest tests
support custom test runners
Oct 31, 2014
However, the problem of not being able to swap setup_databases to something different remains, but this will be solved with pytest fixtures. See #37 (comment) for an example on this. When such fixtures can be defined, it will be trivial to the appropriate methods from another test runner class.
Closing this issue since custom test runners cannot be supported in this way.
Currently, pytest runs the
setup_databases
methods from Django'sDiscoverRunner
to set up the database. It should supportsetup_databases
from custom test runners as defined in theTEST_RUNNER
setting.The text was updated successfully, but these errors were encountered: