File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 63
63
64
64
def pytest_addoption (parser ):
65
65
group = parser .getgroup ("django" )
66
- group ._addoption (
66
+ group .addoption (
67
67
"--reuse-db" ,
68
68
action = "store_true" ,
69
69
dest = "reuse_db" ,
70
70
default = False ,
71
71
help = "Re-use the testing database if it already exists, "
72
72
"and do not remove it when the test finishes." ,
73
73
)
74
- group ._addoption (
74
+ group .addoption (
75
75
"--create-db" ,
76
76
action = "store_true" ,
77
77
dest = "create_db" ,
78
78
default = False ,
79
79
help = "Re-create the database, even if it exists. This "
80
80
"option can be used to override --reuse-db." ,
81
81
)
82
- group ._addoption (
82
+ group .addoption (
83
83
"--ds" ,
84
84
action = "store" ,
85
85
type = str ,
86
86
dest = "ds" ,
87
87
default = None ,
88
88
help = "Set DJANGO_SETTINGS_MODULE." ,
89
89
)
90
- group ._addoption (
90
+ group .addoption (
91
91
"--dc" ,
92
92
action = "store" ,
93
93
type = str ,
94
94
dest = "dc" ,
95
95
default = None ,
96
96
help = "Set DJANGO_CONFIGURATION." ,
97
97
)
98
- group ._addoption (
98
+ group .addoption (
99
99
"--nomigrations" ,
100
100
"--no-migrations" ,
101
101
action = "store_true" ,
102
102
dest = "nomigrations" ,
103
103
default = False ,
104
104
help = "Disable Django migrations on test setup" ,
105
105
)
106
- group ._addoption (
106
+ group .addoption (
107
107
"--migrations" ,
108
108
action = "store_false" ,
109
109
dest = "nomigrations" ,
@@ -113,7 +113,7 @@ def pytest_addoption(parser):
113
113
parser .addini (
114
114
CONFIGURATION_ENV , "django-configurations class to use by pytest-django."
115
115
)
116
- group ._addoption (
116
+ group .addoption (
117
117
"--liveserver" ,
118
118
default = None ,
119
119
help = "Address and port for the live_server fixture." ,
@@ -128,7 +128,7 @@ def pytest_addoption(parser):
128
128
type = "bool" ,
129
129
default = True ,
130
130
)
131
- group ._addoption (
131
+ group .addoption (
132
132
"--fail-on-template-vars" ,
133
133
action = "store_true" ,
134
134
dest = "itv" ,
You can’t perform that action at this time.
0 commit comments