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 84680da commit 0839793Copy full SHA for 0839793
tests/test_wind_turbine.py
@@ -133,6 +133,14 @@ def test_error_raising(self):
133
with pytest.raises(TypeError):
134
WindTurbine(**self.test_turbine_data)
135
136
+ # Raise TypeError due to invalid type for nominal power
137
+ self.test_turbine_data = {'hub_height': 100,
138
+ 'power_curve': True,
139
+ 'turbine_type': 'E-126/4200',
140
+ 'nominal_power': [3]}
141
+ with pytest.raises(TypeError):
142
+ WindTurbine(**self.test_turbine_data)
143
+
144
# Raise AttributeError in case no power or power coefficient curve
145
# is set
146
self.test_turbine_data = {'hub_height': 100}
0 commit comments