Skip to content

Commit 533bb08

Browse files
committed
Add test for missing p-values
1 parent fa32717 commit 533bb08

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_modelchain.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,16 @@ def test_run_model(self):
189189
test_mc = mc.ModelChain(wt.WindTurbine(**turbine1),
190190
**modelchain1)
191191
test_mc.run_model(weather, data_height)
192+
with pytest.raises(TypeError):
193+
turbine2 = {'hub_height': 100,
194+
'd_rotor': 80,
195+
'turbine_name': 'ENERCON E 126 7500',
196+
'fetch_curve': 'cp'}
197+
modelchain2 = {'wind_model': 'hellman',
198+
'rho_model': 'barometric',
199+
'temperature_model': 'interpolation',
200+
'power_output_model': 'p_values',
201+
'density_corr': True}
202+
test_mc = mc.ModelChain(wt.WindTurbine(**turbine2),
203+
**modelchain2)
204+
test_mc.run_model(weather, data_height)

0 commit comments

Comments
 (0)