#9940: Pass DATABASE_OPTIONS to regressiontests/admin_scripts tests
------------------------------------------------------------+---------------
Reporter: ramiro | Owner:
nobody
Status: new | Milestone:
Component: Testing framework | Version: SVN
Keywords: regressiontests admin_scripts DATABASE_OPTIONS | Stage:
Unreviewed
Has_patch: 0 |
------------------------------------------------------------+---------------
The tests in `tests/regressiontests/admin_scripts` involve the creation of
a number of settings files. Currently, only the values of the
`DATABASE_ENGINE`, `DATABASE_NAME`, `DATABASE_USER`, `DATABASE_PASSWORD`,
`DATABASE_HOST`, `DATABASE_PORT` and `ROOT_URLCONF` settings are copied
from the user-provided settings.
The DB backends included with Django don't need additional settings to be
able to run such tests under a complete DB environment but for other
(external) backends some additional information might be needed.
In the case of `django-pyodbc`, historically `DATABASE_ODBC_DRIVER` and
`DATABASE_ODBC_DSN` have been examples of such settings (they allow to
configure some ODBC-related values). Providing default values for them in
the backend isn't a always a complete solution and asking Django to
preserve their values is out of question because it would be non-generic.
What could be done instead is: a) ask for the `DATABASE_OPTIONS` setting
to be preserved (that's what this ticket is all about) and b) in the
backend side: Gradually migrate these settings to `DATABASE_OPTIONS`.
--
Ticket URL: <http://code.djangoproject.com/ticket/9940>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---