Changeset 463
- Timestamp:
- 08/10/05 10:36:16 (3 years ago)
- Files:
-
- django/trunk/tests/runtests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/runtests.py
r446 r463 54 54 from django.core.db import db 55 55 from django.core import management, meta 56 57 self.output(0, "Running tests with database %r" % settings.DATABASE_ENGINE) 56 58 57 59 # Manually set INSTALLED_APPS to point to the test app. … … 177 179 parser.add_option('-v', help='How verbose should the output be? Choices are 0, 1 and 2, where 2 is most verbose. Default is 0.', 178 180 type='choice', choices=['0', '1', '2']) 181 parser.add_option('--settings', 182 help='Python path to settings module, e.g. "myproject.settings.main". If this isn\'t provided, the DJANGO_SETTINGS_MODULE environment variable will be used.') 179 183 options, args = parser.parse_args() 180 184 verbosity_level = 0 181 185 if options.v: 182 186 verbosity_level = int(options.v) 187 if options.settings: 188 os.environ['DJANGO_SETTINGS_MODULE'] = options.settings 183 189 t = TestRunner(verbosity_level) 184 190 t.run_tests()
