#11809: Unable to test a non-db dependent django app without db configuration
------------------------------------------------------------------------+---
Reporter: Prabhu Subramanian <[email protected]> |
Owner: nobody
Status: new |
Milestone:
Component: Testing framework |
Version: 1.1
Resolution: |
Keywords:
Stage: Unreviewed |
Has_patch: 0
Needs_docs: 0 |
Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------------------------------+---
Comment (by Prabhu Subramanian <[email protected]>):
if no DATABASE_ENGINE is given, why cant the test runner skip
creating/deleting test database? No special value is required. This would
satisfy the genuine cases where the app really doesn't require databases.
For the bad case, where a developer has left out DATABASE_ENGINE
parameter, but is doing something with models that require db access, then
the database accessing code is responsible for throwing these Exceptions.
I haven't cared to look at the code. Perhaps a patch can help?
--
Ticket URL: <http://code.djangoproject.com/ticket/11809#comment:2>
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
-~----------~----~----~----~------~----~------~--~---