@@ -219,10 +219,10 @@ def poadc(mc):
219219
220220@pytest .mark .parametrize ('dc_model' , [
221221 'sapm' ,
222- pytest .param ('cec' , marks = requires_scipy ),
223- pytest .param ('desoto' , marks = requires_scipy ),
224- pytest .param ('pvsyst' , marks = requires_scipy ),
225- pytest .param ('singlediode' , marks = requires_scipy ),
222+ pytest .param ('cec' , marks = requires_scipy ),
223+ pytest .param ('desoto' , marks = requires_scipy ),
224+ pytest .param ('pvsyst' , marks = requires_scipy ),
225+ pytest .param ('singlediode' , marks = requires_scipy ),
226226 'pvwatts_dc' ])
227227def test_infer_dc_model (system , cec_dc_snl_ac_system , pvsyst_dc_snl_ac_system ,
228228 pvwatts_dc_pvwatts_ac_system , location , dc_model ,
@@ -445,9 +445,12 @@ def test_bad_get_orientation():
445445
446446@fail_on_pvlib_version ('0.7' )
447447def test_deprecated_07 ():
448+ # explicit system creation call because fail_on_pvlib_version
449+ # does not support decorators
450+ system = cec_dc_snl_ac_system (sam_data ())
448451 with pytest .warns (pvlibDeprecationWarning ):
449- mc = ModelChain (cec_dc_snl_ac_system , location ,
450- dc_model = 'singlediode' , # this should fail after 0.7
452+ mc = ModelChain (system , location ,
453+ dc_model = 'singlediode' , # this should fail after 0.7
451454 aoi_model = 'no_loss' , spectral_model = 'no_loss' )
452455
453456
0 commit comments