Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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 Eric Holscher, 15 years ago

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.

comment:2 by Alex Gaynor, 15 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.

comment:3 by dc, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #6298

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top