Changeset 154
- Timestamp:
- 05/02/07 14:38:41 (2 years ago)
- Files:
-
- trunk/bin/domainmodel-test (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/domainmodel-test
r125 r154 12 12 os.environ['DJANGO_SETTINGS_MODULE'] = 'dm.django.settings.main' 13 13 14 from dm.testunit import ApplicationTestSuite15 ApplicationTestSuite.buildApplication()16 17 14 if __name__ == "__main__": 18 15 usage = 'usage: %prog [options] [module_name]' … … 26 23 action='store', type='int', dest='level', default=1, 27 24 help='Verbosity level of test runner') 25 parser.add_option('-c', '--conf', 26 action='store', type='str', dest='config', default='', 27 help='Path to configuration file. If not provided please ensure ' + \ 28 'relevant environment variable is set.' 29 ) 28 30 31 (options, args) = parser.parse_args() 32 if options.config: 33 os.environ['DOMAINMODEL_SETTINGS'] = options.config 34 35 # import after SETTINGS is set 36 from dm.testunit import ApplicationTestSuite 37 ApplicationTestSuite.buildApplication() 38 29 39 (options, args) = parser.parse_args() 30 40 # by default always 1 argument (name of file itself)
