Skip to content

Commit 2b9b75d

Browse files
committed
Catch warnings while testing the ModelChain class
1 parent 2d7dbb5 commit 2b9b75d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_modelchain.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"""
2-
The ``modelchain`` module contains functions and classes of the
3-
windpowerlib. This module makes it easy to get started with the windpowerlib
4-
and demonstrates standard ways to use the library.
5-
2+
Testing the ``modelchain`` module.
63
"""
74

85
__copyright__ = "Copyright oemof developer group"
@@ -279,6 +276,7 @@ def test_wrong_density_correction_type(self):
279276
**test_modelchain)
280277
test_mc.run_model(self.weather_df)
281278

279+
@pytest.mark.filterwarnings("ignore:The WindTurbine")
282280
def test_missing_cp_values(self):
283281
"""Raise TypeErrors due to missing cp-values"""
284282
test_turbine = {'hub_height': 100,
@@ -292,6 +290,7 @@ def test_missing_cp_values(self):
292290
**test_modelchain)
293291
test_mc.run_model(self.weather_df)
294292

293+
@pytest.mark.filterwarnings("ignore:The WindTurbine")
295294
def test_missing_p_values(self):
296295
"""Raise TypeErrors due to missing p-values"""
297296
test_turbine = {'hub_height': 100,

0 commit comments

Comments
 (0)