@@ -140,11 +140,7 @@ def testParser2(datafile):
140140 return
141141
142142
143- def testGenerator (
144- diffpy_srreal_available , diffpy_structure_available , datafile
145- ):
146- if not diffpy_structure_available :
147- pytest .skip ("diffpy.structure package not available" )
143+ def testGenerator (diffpy_srreal_available , datafile ):
148144 if not diffpy_srreal_available :
149145 pytest .skip ("diffpy.srreal package not available" )
150146
@@ -200,7 +196,7 @@ def testGenerator(
200196 return
201197
202198
203- def test_setQmin (diffpy_structure_available , diffpy_srreal_available ):
199+ def test_setQmin (diffpy_srreal_available ):
204200 """Verify qmin is propagated to the calculator object."""
205201 if not diffpy_srreal_available :
206202 pytest .skip ("diffpy.srreal package not available" )
@@ -214,10 +210,8 @@ def test_setQmin(diffpy_structure_available, diffpy_srreal_available):
214210 return
215211
216212
217- def test_setQmax (diffpy_structure_available , diffpy_srreal_available ):
213+ def test_setQmax (diffpy_srreal_available ):
218214 """Check PDFContribution.setQmax()"""
219- if not diffpy_structure_available :
220- pytest .skip ("diffpy.structure package not available" )
221215 from diffpy .structure import Structure
222216
223217 if not diffpy_srreal_available :
@@ -233,10 +227,8 @@ def test_setQmax(diffpy_structure_available, diffpy_srreal_available):
233227 return
234228
235229
236- def test_getQmax (diffpy_structure_available , diffpy_srreal_available ):
230+ def test_getQmax (diffpy_srreal_available ):
237231 """Check PDFContribution.getQmax()"""
238- if not diffpy_structure_available :
239- pytest .skip ("diffpy.structure package not available" )
240232 from diffpy .structure import Structure
241233
242234 if not diffpy_srreal_available :
@@ -260,12 +252,8 @@ def test_getQmax(diffpy_structure_available, diffpy_srreal_available):
260252 return
261253
262254
263- def test_savetxt (
264- diffpy_structure_available , diffpy_srreal_available , datafile
265- ):
255+ def test_savetxt (diffpy_srreal_available , datafile ):
266256 "check PDFContribution.savetxt()"
267- if not diffpy_structure_available :
268- pytest .skip ("diffpy.structure package not available" )
269257 from diffpy .structure import Structure
270258
271259 if not diffpy_srreal_available :
@@ -286,12 +274,8 @@ def test_savetxt(
286274 return
287275
288276
289- def test_pickling (
290- diffpy_structure_available , diffpy_srreal_available , datafile
291- ):
277+ def test_pickling (diffpy_srreal_available , datafile ):
292278 "validate PDFContribution.residual() after pickling."
293- if not diffpy_structure_available :
294- pytest .skip ("diffpy.structure package not available" )
295279 from diffpy .structure import loadStructure
296280
297281 if not diffpy_srreal_available :
0 commit comments