@@ -132,58 +132,58 @@ class TestShortLogReport(NamedTuple):
132
132
133
133
def pytest_addoption (parser : Parser ) -> None :
134
134
group = parser .getgroup ("terminal reporting" , "Reporting" , after = "general" )
135
- group ._addoption (
135
+ group ._addoption ( # private to use reserved lower-case short option
136
136
"-v" ,
137
137
"--verbose" ,
138
138
action = "count" ,
139
139
default = 0 ,
140
140
dest = "verbose" ,
141
141
help = "Increase verbosity" ,
142
142
)
143
- group ._addoption (
143
+ group .addoption (
144
144
"--no-header" ,
145
145
action = "store_true" ,
146
146
default = False ,
147
147
dest = "no_header" ,
148
148
help = "Disable header" ,
149
149
)
150
- group ._addoption (
150
+ group .addoption (
151
151
"--no-summary" ,
152
152
action = "store_true" ,
153
153
default = False ,
154
154
dest = "no_summary" ,
155
155
help = "Disable summary" ,
156
156
)
157
- group ._addoption (
157
+ group .addoption (
158
158
"--no-fold-skipped" ,
159
159
action = "store_false" ,
160
160
dest = "fold_skipped" ,
161
161
default = True ,
162
162
help = "Do not fold skipped tests in short summary." ,
163
163
)
164
- group ._addoption (
164
+ group .addoption (
165
165
"--force-short-summary" ,
166
166
action = "store_true" ,
167
167
dest = "force_short_summary" ,
168
168
default = False ,
169
169
help = "Force condensed summary output regardless of verbosity level." ,
170
170
)
171
- group ._addoption (
171
+ group ._addoption ( # private to use reserved lower-case short option
172
172
"-q" ,
173
173
"--quiet" ,
174
174
action = MoreQuietAction ,
175
175
default = 0 ,
176
176
dest = "verbose" ,
177
177
help = "Decrease verbosity" ,
178
178
)
179
- group ._addoption (
179
+ group .addoption (
180
180
"--verbosity" ,
181
181
dest = "verbose" ,
182
182
type = int ,
183
183
default = 0 ,
184
184
help = "Set verbosity. Default: 0." ,
185
185
)
186
- group ._addoption (
186
+ group ._addoption ( # private to use reserved lower-case short option
187
187
"-r" ,
188
188
action = "store" ,
189
189
dest = "reportchars" ,
@@ -195,29 +195,29 @@ def pytest_addoption(parser: Parser) -> None:
195
195
"(w)arnings are enabled by default (see --disable-warnings), "
196
196
"'N' can be used to reset the list. (default: 'fE')." ,
197
197
)
198
- group ._addoption (
198
+ group .addoption (
199
199
"--disable-warnings" ,
200
200
"--disable-pytest-warnings" ,
201
201
default = False ,
202
202
dest = "disable_warnings" ,
203
203
action = "store_true" ,
204
204
help = "Disable warnings summary" ,
205
205
)
206
- group ._addoption (
206
+ group ._addoption ( # private to use reserved lower-case short option
207
207
"-l" ,
208
208
"--showlocals" ,
209
209
action = "store_true" ,
210
210
dest = "showlocals" ,
211
211
default = False ,
212
212
help = "Show locals in tracebacks (disabled by default)" ,
213
213
)
214
- group ._addoption (
214
+ group .addoption (
215
215
"--no-showlocals" ,
216
216
action = "store_false" ,
217
217
dest = "showlocals" ,
218
218
help = "Hide locals in tracebacks (negate --showlocals passed through addopts)" ,
219
219
)
220
- group ._addoption (
220
+ group .addoption (
221
221
"--tb" ,
222
222
metavar = "style" ,
223
223
action = "store" ,
@@ -226,14 +226,14 @@ def pytest_addoption(parser: Parser) -> None:
226
226
choices = ["auto" , "long" , "short" , "no" , "line" , "native" ],
227
227
help = "Traceback print mode (auto/long/short/line/native/no)" ,
228
228
)
229
- group ._addoption (
229
+ group .addoption (
230
230
"--xfail-tb" ,
231
231
action = "store_true" ,
232
232
dest = "xfail_tb" ,
233
233
default = False ,
234
234
help = "Show tracebacks for xfail (as long as --tb != no)" ,
235
235
)
236
- group ._addoption (
236
+ group .addoption (
237
237
"--show-capture" ,
238
238
action = "store" ,
239
239
dest = "showcapture" ,
@@ -242,14 +242,14 @@ def pytest_addoption(parser: Parser) -> None:
242
242
help = "Controls how captured stdout/stderr/log is shown on failed tests. "
243
243
"Default: all." ,
244
244
)
245
- group ._addoption (
245
+ group .addoption (
246
246
"--fulltrace" ,
247
247
"--full-trace" ,
248
248
action = "store_true" ,
249
249
default = False ,
250
250
help = "Don't cut any tracebacks (default is to cut)" ,
251
251
)
252
- group ._addoption (
252
+ group .addoption (
253
253
"--color" ,
254
254
metavar = "color" ,
255
255
action = "store" ,
@@ -258,7 +258,7 @@ def pytest_addoption(parser: Parser) -> None:
258
258
choices = ["yes" , "no" , "auto" ],
259
259
help = "Color terminal output (yes/no/auto)" ,
260
260
)
261
- group ._addoption (
261
+ group .addoption (
262
262
"--code-highlight" ,
263
263
default = "yes" ,
264
264
choices = ["yes" , "no" ],
0 commit comments