s/empty_parameterset/empty_parameter_set_mark
This commit is contained in:
parent
8979b2a9d7
commit
d550c33cd0
|
@ -95,7 +95,7 @@ class ParameterSet(namedtuple('ParameterSet', 'values, marks, id')):
|
|||
|
||||
|
||||
def get_empty_parameterset_mark(config, argnames, function):
|
||||
requested_mark = config.getini('empty_parameterset')
|
||||
requested_mark = config.getini('empty_parameter_set_mark')
|
||||
if requested_mark in ('', None, 'skip'):
|
||||
mark = MARK_GEN.skip
|
||||
elif requested_mark == 'xfail':
|
||||
|
@ -148,7 +148,7 @@ def pytest_addoption(parser):
|
|||
|
||||
parser.addini("markers", "markers for test functions", 'linelist')
|
||||
parser.addini(
|
||||
"empty_parameterset",
|
||||
"empty_parameter_set_mark",
|
||||
"default marker for empty parametersets")
|
||||
|
||||
|
||||
|
|
|
@ -348,7 +348,7 @@ passed multiple times. The expected format is ``name=value``. For example::
|
|||
console_output_style = classic
|
||||
|
||||
|
||||
.. confval:: empty_parameterset
|
||||
.. confval:: empty_parameter_set_mark
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
@ -363,4 +363,4 @@ passed multiple times. The expected format is ``name=value``. For example::
|
|||
|
||||
# content of pytest.ini
|
||||
[pytest]
|
||||
empty_parameterset = xfail
|
||||
empty_parameter_set_mark = xfail
|
Loading…
Reference in New Issue