Skip to content

Commit 84b300c

Browse files
committed
Test wrong spelled density correction
1 parent 85a6362 commit 84b300c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_power_output.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,16 @@ def test_power_curve_density_correction(self):
175175
with pytest.raises(TypeError):
176176
parameters['density'] = None
177177
power_curve_density_correction(**parameters)
178+
179+
def test_wrong_spelling_density_correction(self):
180+
parameters = {'wind_speed': pd.Series(data=[2.0, 5.5, 7.0]),
181+
'density': pd.Series(data=[1.3, 1.3, 1.3]),
182+
'power_curve_wind_speeds':
183+
pd.Series([4.0, 5.0, 6.0]),
184+
'power_curve_values':
185+
pd.Series([300, 400, 500])
186+
}
187+
msg = "is an invalid type. `density_correction` must be Boolean"
188+
with pytest.raises(TypeError, match=msg):
189+
parameters['density_correction'] = None
190+
power_curve(**parameters)

0 commit comments

Comments
 (0)