Opened 5 years ago
Closed 5 years ago
#31979 closed Cleanup/optimization (fixed)
Make new setup_databases() argument time_keeper optional
| Reported by: | Jon Dufresne | Owned by: | Jon Dufresne |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Ahmad A. Hussein | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The argument was added in commit 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915 as work on ticket #31811.
setup_databases() is used by 3rd party tools. As well, the signature is documented: https://docs.djangoproject.com/en/3.1/topics/testing/advanced/#django.test.utils.setup_databases
For backwards compatibility, make the new argument optional. If not provided, a NullTimeKeeper can be instantiated so no other None-checks will be required deeper in the stack.
Change History (3)
comment:1 by , 5 years ago
| Has patch: | set |
|---|
comment:2 by , 5 years ago
| Cc: | added |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/13381