File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,6 @@ def test_get_turbine_data_from_file(self):
3838 with pytest .raises (FileNotFoundError ):
3939 get_turbine_data_from_file (turbine_type = "..." , path = "not_existent" )
4040
41- def test_get_turbine_types (self , capsys ):
42- get_turbine_types ()
43- captured = capsys .readouterr ()
44- assert "Enercon" in captured .out
45- get_turbine_types ("oedb" , print_out = False , filter_ = False )
46- msg = "`turbine_library` is 'wrong' but must be 'local' or 'oedb'."
47- with pytest .raises (ValueError , match = msg ):
48- get_turbine_types ("wrong" )
49-
50- def test_wrong_url_load_turbine_data (self ):
51- """Load turbine data from oedb."""
52-
53- with pytest .raises (
54- ConnectionError , match = "Database connection not successful"
55- ):
56- load_turbine_data_from_oedb ("wrong_schema" )
57-
5841 @pytest .mark .filterwarnings ("ignore:The WindTurbine" )
5942 def test_string_representation_of_wind_turbine (self ):
6043 assert "Wind turbine: ['hub height=120 m'" in repr (WindTurbine (120 ))
You can’t perform that action at this time.
0 commit comments