Skip to content

Commit 442ee6a

Browse files
committed
linting, whatsnew
1 parent 4653d9d commit 442ee6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/sphinx/source/whatsnew/v0.13.1.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Documentation
2626

2727
Testing
2828
~~~~~~~
29-
29+
* Update test for :py:func:`~pvlib.modelchain.get_orientation` to check
30+
whether the correct error message is raised when an invalid strategy is
31+
provided. (:issue:`2492`, :pull:`2691`)
3032

3133
Benchmarking
3234
~~~~~~~~~~~~

tests/test_modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ def test_invalid_models(model, sapm_dc_snl_ac_system, location):
17861786

17871787

17881788
def test_get_orientation_invalid_strategy():
1789-
with pytest.raises(ValueError,
1789+
with pytest.raises(ValueError,
17901790
match='invalid orientation strategy. strategy must '
17911791
'be one of south_at_latitude_tilt, flat,'):
17921792
modelchain.get_orientation('invalid_strategy')

0 commit comments

Comments
 (0)