|
5 | 5 | import getpass |
6 | 6 | import time |
7 | 7 | import uuid |
8 | | -from optparse import SUPPRESS_HELP |
9 | 8 | from nose.plugins import Plugin |
10 | 9 | from nose.exc import SkipTest |
11 | 10 | from seleniumbase.core.application_manager import ApplicationManager |
@@ -34,12 +33,20 @@ def __init__(self): |
34 | 33 |
|
35 | 34 | def options(self, parser, env): |
36 | 35 | super(DBReporting, self).options(parser, env=env) |
37 | | - parser.add_option('--database_environment', action='store', |
| 36 | + parser.add_option('--database_env', '--database-env', |
| 37 | + action='store', |
38 | 38 | dest='database_env', |
39 | | - choices=('production', 'qa', 'staging', 'develop', |
40 | | - 'test', 'local', 'master'), |
41 | | - default='test', |
42 | | - help=SUPPRESS_HELP) |
| 39 | + choices=( |
| 40 | + constants.Environment.QA, |
| 41 | + constants.Environment.STAGING, |
| 42 | + constants.Environment.DEVELOP, |
| 43 | + constants.Environment.PRODUCTION, |
| 44 | + constants.Environment.MASTER, |
| 45 | + constants.Environment.LOCAL, |
| 46 | + constants.Environment.TEST |
| 47 | + ), |
| 48 | + default=constants.Environment.TEST, |
| 49 | + help="The database environment to run the tests in.") |
43 | 50 |
|
44 | 51 | def configure(self, options, conf): |
45 | 52 | super(DBReporting, self).configure(options, conf) |
|
0 commit comments