Skip to content

Commit 4619a1e

Browse files
committed
fix coverage drop
1 parent 53ea45d commit 4619a1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pvlib/tests/test_pvsystem.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,10 +1814,16 @@ def test_PVSystem_multi_array_attributes(attr):
18141814
with pytest.raises(AttributeError):
18151815
getattr(system, attr)
18161816

1817+
with pytest.raises(AttributeError):
1818+
setattr(system, attr, 'dummy')
1819+
18171820
system = pvsystem.PVSystem()
18181821
with pytest.warns(pvlibDeprecationWarning):
18191822
getattr(system, attr)
18201823

1824+
with pytest.warns(pvlibDeprecationWarning):
1825+
setattr(system, attr, 'dummy')
1826+
18211827

18221828
def test_PVSystem___repr__():
18231829
system = pvsystem.PVSystem(

0 commit comments

Comments
 (0)