Skip to content

Commit 3e3df38

Browse files
committed
Include more hard-coded options for "--env=ENV"
1 parent d468848 commit 3e3df38

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

seleniumbase/fixtures/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
class Environment:
1010
# Usage Example => "--env=qa" => Then access value in tests with "self.env"
1111
QA = "qa"
12+
RC = "rc"
1213
STAGING = "staging"
1314
DEVELOP = "develop"
1415
PRODUCTION = "production"
16+
OFFLINE = "offline"
17+
ONLINE = "online"
1518
MASTER = "master"
1619
REMOTE = "remote"
1720
LOCAL = "local"
@@ -24,9 +27,12 @@ class Environment:
2427
class ValidEnvs:
2528
valid_envs = [
2629
"qa",
30+
"rc",
2731
"staging",
2832
"develop",
2933
"production",
34+
"offline",
35+
"online",
3036
"master",
3137
"remote",
3238
"local",

seleniumbase/plugins/base_plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def options(self, parser, env):
4444
dest="environment",
4545
choices=(
4646
constants.Environment.QA,
47+
constants.Environment.RC,
4748
constants.Environment.STAGING,
4849
constants.Environment.DEVELOP,
4950
constants.Environment.PRODUCTION,
51+
constants.Environment.OFFLINE,
52+
constants.Environment.ONLINE,
5053
constants.Environment.MASTER,
5154
constants.Environment.REMOTE,
5255
constants.Environment.LOCAL,

seleniumbase/plugins/pytest_plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,12 @@ def pytest_addoption(parser):
188188
type=str.lower,
189189
choices=(
190190
constants.Environment.QA,
191+
constants.Environment.RC,
191192
constants.Environment.STAGING,
192193
constants.Environment.DEVELOP,
193194
constants.Environment.PRODUCTION,
195+
constants.Environment.OFFLINE,
196+
constants.Environment.ONLINE,
194197
constants.Environment.MASTER,
195198
constants.Environment.REMOTE,
196199
constants.Environment.LOCAL,

0 commit comments

Comments
 (0)