@@ -23,6 +23,17 @@ def pytest_addoption(parser):
23
23
dest = 'with_selenium' ,
24
24
default = False ,
25
25
help = "Use if tests need to be run with a web browser." )
26
+ parser .addoption ('--env' , action = 'store' ,
27
+ dest = 'environment' ,
28
+ choices = (
29
+ constants .Environment .QA ,
30
+ constants .Environment .STAGING ,
31
+ constants .Environment .PRODUCTION ,
32
+ constants .Environment .MASTER ,
33
+ constants .Environment .LOCAL ,
34
+ constants .Environment .TEST ),
35
+ default = constants .Environment .TEST ,
36
+ help = "The environment to run the tests in." )
26
37
parser .addoption ('--data' , dest = 'data' ,
27
38
default = None ,
28
39
help = 'Extra data to pass from the command line.' )
@@ -39,7 +50,8 @@ def pytest_addoption(parser):
39
50
help = "Use to record test data in the MySQL database." )
40
51
parser .addoption ('--database_env' , action = 'store' ,
41
52
dest = 'database_env' ,
42
- choices = ('prod' , 'qa' , 'test' ),
53
+ choices = (
54
+ 'prod' , 'qa' , 'staging' , 'test' , 'local' , 'master' ),
43
55
default = 'test' ,
44
56
help = optparse .SUPPRESS_HELP )
45
57
parser .addoption ('--with-s3_logging' , action = "store_true" ,
0 commit comments