Skip to content

Commit

Permalink
Update test to correspond to the new warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeopti committed Apr 27, 2022
1 parent 4bee849 commit a82d805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_deprecation_behaviour(monkeypatch):

with pytest.warns(exceptions.DeprecationWarning) as warning:
update_settings()
assert f'TC_{deprecated_field} is being deprecated' in str(warning[0])
assert f'TC_{deprecated_field} is deprecated' in str(warning[0])

assert getattr(get_settings(), deprecated_field) == 'foo'
assert getattr(get_settings(), new_field) == 'foo'
Expand All @@ -95,7 +95,7 @@ def test_deprecation_behaviour(monkeypatch):

with pytest.warns(exceptions.DeprecationWarning) as warning:
update_settings()
assert f'TC_{deprecated_field} is being deprecated' in str(warning[0])
assert f'TC_{deprecated_field} is deprecated' in str(warning[0])

assert getattr(get_settings(), deprecated_field) == 'foo'
assert getattr(get_settings(), new_field) == 'bar'

0 comments on commit a82d805

Please sign in to comment.