Skip to content

Commit e1dd203

Browse files
committed
test: remove return value checks
1 parent c24f6d5 commit e1dd203

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pvlib/tests/test_irradiance.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,18 +1150,9 @@ def test_dni_dni_clearsky_deprecation():
11501150
dhi = pd.Series([100, 90, 50, 50, 50])
11511151
zenith = pd.Series([80, 100, 85, 70, 85])
11521152
dni_clear = pd.Series([50, 50, 200, 50, 300])
1153-
11541153
with pytest.warns(pvlibDeprecationWarning, match='dni_clear'):
1155-
dni = irradiance.dni(ghi, dhi, zenith,
1156-
clearsky_dni=dni_clear, clearsky_tolerance=2)
1157-
assert_series_equal(dni,
1158-
pd.Series([float('nan'), float('nan'), 400,
1159-
146.190220008, 573.685662283]))
1160-
1161-
dni = irradiance.dni(ghi, dhi, zenith)
1162-
assert_series_equal(dni,
1163-
pd.Series([float('nan'), float('nan'), 573.685662283,
1164-
146.190220008, 573.685662283]))
1154+
irradiance.dni(ghi, dhi, zenith,
1155+
clearsky_dni=dni_clear, clearsky_tolerance=2)
11651156

11661157

11671158
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)