We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c1d6c commit 462923dCopy full SHA for 462923d
tests/test_power_output.py
@@ -215,10 +215,11 @@ def test_power_curve_10(self):
215
power_curve(**self.parameters2), self.power_output_exp2
216
)
217
218
- # Raise TypeErrors due to wrong type of `density_correction`
219
- with pytest.raises(TypeError):
220
- parameters["density"] = "wrong_type"
221
- power_curve(**parameters)
+ def test_power_curve_11(self):
+ """Raise IndexErrors due to wrong type of `density_correction`"""
+ with pytest.raises(IndexError, match="too many indices for array"):
+ self.parameters2["density"] = "wrong_type"
222
+ power_curve(**self.parameters2)
223
224
def test_power_curve_density_correction(self):
225
"""TODO: Explain and split this test."""
0 commit comments