Skip to content

Commit e54a765

Browse files
committed
Test string repr of WindTurbine if 'turbine_type' is None
1 parent f1b5cb7 commit e54a765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_wind_turbine.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ def test_wrong_url_load_turbine_data(self):
5656
with pytest.raises(ConnectionError,
5757
match="Database connection not successful"):
5858
load_turbine_data_from_oedb('wrong_schema')
59+
60+
@pytest.mark.filterwarnings("ignore:The WindTurbine")
61+
def test_string_representation_of_wind_turbine(self):
62+
assert "Wind turbine: ['hub height=120 m'" in repr(WindTurbine(120))

0 commit comments

Comments
 (0)