Skip to content

Commit 871e8b4

Browse files
committed
test deprecation
1 parent 6ebfb57 commit 871e8b4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_irradiance.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,13 @@ def test_ghi_from_poa_driesse(mocker):
841841
assert bisect_spy.call_args[1]["xtol"] == xtol
842842

843843

844+
def test_ghi_from_poa_driesse_2023_deprecated():
845+
with pytest.warns(pvlibDeprecationWarning,
846+
match="ghi_from_poa_driesse_2024"):
847+
irradiance.ghi_from_poa_driesse_2023(
848+
30, 180, 20, 180, 500, dni_extra=1366.1)
849+
850+
844851
def test_gti_dirint():
845852
times = pd.DatetimeIndex(
846853
['2014-06-24T06-0700', '2014-06-24T09-0700', '2014-06-24T12-0700'])

0 commit comments

Comments
 (0)