@@ -68,6 +68,9 @@ class DTConfig:
68
68
NameErrors. Set to True if you want to see these, or if your test
69
69
is actually expected to raise NameErrors.
70
70
Default is False.
71
+ pytest_extra_skips : list
72
+ A list of names/modules to skip when run under pytest plugin. Ignored
73
+ otherwise.
71
74
72
75
"""
73
76
def __init__ (self , * , # DTChecker configuration
@@ -88,6 +91,7 @@ def __init__(self, *, # DTChecker configuration
88
91
# Obscure switches
89
92
parse_namedtuples = True , # Checker
90
93
nameerror_after_exception = False , # Runner
94
+ pytest_extra_skips = None , # plugin/collection
91
95
):
92
96
### DTChecker configuration ###
93
97
# The namespace to run examples in
@@ -171,6 +175,11 @@ def __init__(self, *, # DTChecker configuration
171
175
self .parse_namedtuples = parse_namedtuples
172
176
self .nameerror_after_exception = nameerror_after_exception
173
177
178
+ #### pytest plugin additional switches
179
+ if pytest_extra_skips is None :
180
+ pytest_extra_skips = []
181
+ self .pytest_extra_skips = pytest_extra_skips
182
+
174
183
175
184
def try_convert_namedtuple (got ):
176
185
# suppose that "got" is smth like MoodResult(statistic=10, pvalue=0.1).
0 commit comments