Skip to content

Commit 4813354

Browse files
committed
Update environment options
1 parent 4e33cef commit 4813354

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

seleniumbase/fixtures/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class Environment:
77
# Usage Example => "--env=qa" => Then access value in tests with "self.env"
88
QA = "qa"
99
STAGING = "staging"
10+
DEVELOP = "develop"
1011
PRODUCTION = "production"
1112
MASTER = "master"
1213
LOCAL = "local"

seleniumbase/plugins/base_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def options(self, parser, env):
4040
choices=(
4141
constants.Environment.QA,
4242
constants.Environment.STAGING,
43+
constants.Environment.DEVELOP,
4344
constants.Environment.PRODUCTION,
4445
constants.Environment.MASTER,
4546
constants.Environment.LOCAL,

seleniumbase/plugins/db_reporting_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def options(self, parser, env):
3636
super(DBReporting, self).options(parser, env=env)
3737
parser.add_option('--database_environment', action='store',
3838
dest='database_env',
39-
choices=('prod', 'qa', 'staging',
39+
choices=('production', 'qa', 'staging', 'develop',
4040
'test', 'local', 'master'),
4141
default='test',
4242
help=SUPPRESS_HELP)

seleniumbase/plugins/pytest_plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ def pytest_addoption(parser):
2424
help="Use if tests need to be run with a web browser.")
2525
parser.addoption('--env', action='store',
2626
dest='environment',
27+
type=str.lower,
2728
choices=(
2829
constants.Environment.QA,
2930
constants.Environment.STAGING,
31+
constants.Environment.DEVELOP,
3032
constants.Environment.PRODUCTION,
3133
constants.Environment.MASTER,
3234
constants.Environment.LOCAL,
@@ -51,7 +53,8 @@ def pytest_addoption(parser):
5153
parser.addoption('--database_env', action='store',
5254
dest='database_env',
5355
choices=(
54-
'prod', 'qa', 'staging', 'test', 'local', 'master'
56+
'production', 'qa', 'staging', 'develop',
57+
'test', 'local', 'master'
5558
),
5659
default='test',
5760
help=optparse.SUPPRESS_HELP)

0 commit comments

Comments
 (0)