#11024 closed (duplicate)
Django runtests.py should work without configuring DJANGO_SETTINGS_MODULE
Reported by: | Eric Holscher | Owned by: | Eric Holscher |
---|---|---|---|
Component: | Testing framework | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Allowing people to simply cd into django/tests and execute runtests.py and have it work out of the box makes a lot of sense. It will allow tests to be run easier.
Change History (4)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Defaulting to SQLite only really makes sense once we require 2.5, since that's the first version where we can assume SQLite.
Note:
See TracTickets
for help on using tickets.
Note that I mean that database options should be able to be defined on the command line, or default to Sqlite. Brian Rosner wrote some code for normal Django apps that accomplishes this: http://github.com/ericholscher/django-test-utils/blob/9b2b869940451ceb67166bc4ebb88a112b5dda87/test_utils/bin/django_test_runner.py
Something along those lines would make it really easy to get up and running, and people who wanted to test against another DB could define it on the command line, or add a settings file.