Skip to content

Commit 0d82546

Browse files
committed
Add full deprecated test
1 parent e80c537 commit 0d82546

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_deprecated.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ def test_old_import():
1717
get_turbine_types()
1818

1919

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()
20+
def test_old_name_load_data_from_oedb(recwarn):
21+
load_turbine_data_from_oedb()
22+
assert recwarn.pop(FutureWarning)

0 commit comments

Comments
 (0)