Skip to content

Commit 96a7a64

Browse files
committed
TST: add test for deprecation warnings
1 parent b4eef22 commit 96a7a64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_deprecation_warnings.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,12 @@ def test_flowproposal_rescaled_names_warning():
4646
proposal.prime_parameters = ["x"]
4747
with pytest.warns(FutureWarning, match=r"`rescaled_names` is deprecated"):
4848
assert FlowProposal.rescaled_names.__get__(proposal) == ["x"]
49+
50+
51+
def test_flowproposal_update_bounds_warning():
52+
from nessai.proposal import FlowProposal
53+
54+
proposal = create_autospec(FlowProposal)
55+
proposal.should_update_reparameterisations = True
56+
with pytest.warns(FutureWarning, match=r"`update_bounds` is deprecated"):
57+
assert FlowProposal.update_bounds.__get__(proposal) is True

0 commit comments

Comments
 (0)