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 533bb08 commit 081ad2dCopy full SHA for 081ad2d
tests/test_modelchain.py
@@ -175,6 +175,13 @@ def test_run_model(self):
175
test_mc = mc.ModelChain(wt.WindTurbine(**test_turbine),
176
**test_modelchain)
177
test_mc.run_model(weather, data_height)
178
+ with pytest.raises(TypeError):
179
+ test_modelchain['power_output_model'] = 'cp_values'
180
+ test_modelchain['density_corr'] = 'wrong_type'
181
+ test_mc = mc.ModelChain(wt.WindTurbine(**test_turbine),
182
+ **test_modelchain)
183
+ test_mc.run_model(weather, data_height)
184
+
185
# Raise TypeErrors due to missing cp- or p-values
186
with pytest.raises(TypeError):
187
turbine1 = {'hub_height': 100,
0 commit comments