Skip to content

Commit 0839793

Browse files
committed
Add test to improve coverage
1 parent 84680da commit 0839793

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_wind_turbine.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ def test_error_raising(self):
133133
with pytest.raises(TypeError):
134134
WindTurbine(**self.test_turbine_data)
135135

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+
136144
# Raise AttributeError in case no power or power coefficient curve
137145
# is set
138146
self.test_turbine_data = {'hub_height': 100}

0 commit comments

Comments
 (0)