Opened 7 years ago
Last modified 7 years ago
#28475 closed New feature
Allow user to skip test database creation per connection — at Version 3
Reported by: | Harry Moreno | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Adam Johnson | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I would like to specify in settings.py DATABASES variable that some database connection should be skipped for test database creation.
something like
# settings.py DATABASES = { 'secondary': { 'TEST': { 'CREATE': False } } }
This is necessary because my project has multiple database connections, some using a Readonly user on the database. When the test management command runs it attempts to create a test database using readonly credentials and the entire test suite fails. A user should be able to specify if a test database should not be created on a database.
Change History (3)
comment:1 by , 7 years ago
Cc: | added |
---|
comment:2 by , 7 years ago
Component: | Uncategorized → Testing framework |
---|---|
Type: | Uncategorized → New feature |
Version: | 1.11 → master |
comment:3 by , 7 years ago
Description: | modified (diff) |
---|