#26840 closed Cleanup/optimization (fixed)
Extract database teardown from DiscoverRunner, to better support third-party test runners
Reported by: | Carl Meyer | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently if a third-party test runner wants access to the default database teardown code, it has to instantiate a DiscoverRunner in order to call its teardown_databases
method. This logic should be extracted into a standalone utility, like setup_databases
already is.
Fortunately, Andreas Pelme has already done this in https://github.com/django/django/pull/6872 -- just filing a supporting Trac ticket to properly observe the forms.
Change History (5)
comment:1 by , 8 years ago
Patch needs improvement: | set |
---|
comment:2 by , 8 years ago
Patch needs improvement: | unset |
---|
Note:
See TracTickets
for help on using tickets.
Left comments for improvement on the PR.