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 e54a765 commit 851d075Copy full SHA for 851d075
tests/test_wind_turbine.py
@@ -50,6 +50,16 @@ def test_deduce_nominal_power(self):
50
n131.deduce_nominal_power_from_power_curve()
51
assert n131.nominal_power == 3000000.0
52
53
+ def test_error_deduce_nominal_power_withour_p_curve(self):
54
+ """Test method to deduce nominal_power from power curve"""
55
+ test_turbine_data = {'hub_height': 100,
56
+ 'rotor_diameter': 80,
57
+ 'turbine_type': 'N131/3050'}
58
+ n131 = WindTurbine(**test_turbine_data)
59
+ assert n131.nominal_power is None
60
+ with pytest.raises(ValueError, match="You can not deduce the"):
61
+ n131.deduce_nominal_power_from_power_curve()
62
+
63
def test_wrong_url_load_turbine_data(self):
64
"""Load turbine data from oedb."""
65
0 commit comments