#23933 closed New feature (fixed)
Override_settings with DATABASE_ROUTERS
Reported by: | Wojtek Ruszczewski | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
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, the override_settings
decorator with DATABASE_ROUTERS
has no effect on the master django.db.router
.
ConnectionRouter.routers
is wrapped in cached_property
, so it doesn't see any settings changes. It seems that registering a setting_changed
handler would be enough to make writing tests needing a modified set of routers straightforward.
Change History (3)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In e6f19ec3223ba7c398aea515c5e0f8b93e6f4359: