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 e80c537 commit 0d82546Copy full SHA for 0d82546
tests/test_deprecated.py
@@ -17,9 +17,6 @@ def test_old_import():
17
get_turbine_types()
18
19
20
-def test_old_name_load_data_from_oedb():
21
- with warnings.catch_warnings():
22
- warnings.simplefilter("error")
23
- msg = "store_turbine_data_from_oedb"
24
- with pytest.raises(FutureWarning, match=msg):
25
- load_turbine_data_from_oedb()
+def test_old_name_load_data_from_oedb(recwarn):
+ load_turbine_data_from_oedb()
+ assert recwarn.pop(FutureWarning)
0 commit comments