Skip to content

Commit a3823ed

Browse files
committed
Test creation of unphysical WindTurbine
1 parent eedf553 commit a3823ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_wind_turbine.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ def test_wrongly_defined_to_group_method(self):
9797
match="The 'number' and the 'total_capacity' "
9898
"parameter are mutually exclusive."):
9999
e_t_1.to_group(5, 3000)
100+
101+
def test_create_unphysical_turbine(self):
102+
char = {
103+
'hub_height': 80,
104+
'rotor_diameter': 160,
105+
'turbine_type': 'DUMMY 3',
106+
'path': self.source
107+
}
108+
with pytest.raises(ValueError):
109+
WindTurbine(**char)

0 commit comments

Comments
 (0)