Skip to content

Commit ef3459f

Browse files
committed
Suppress deprecation warning in test
1 parent 2ea4616 commit ef3459f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_irradiance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def test_reindl(irrad_data, ephem_data, dni_et):
252252

253253

254254
def test_king(irrad_data, ephem_data):
255-
result = irradiance.king(40, irrad_data['dhi'], irrad_data['ghi'],
255+
with pytest.warns(pvlibDeprecationWarning, match='king'):
256+
result = irradiance.king(40, irrad_data['dhi'], irrad_data['ghi'],
256257
ephem_data['apparent_zenith'])
257258
assert_allclose(result, [0, 44.629352, 115.182626, 79.719855], atol=1e-4)
258259

0 commit comments

Comments
 (0)