mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
Merge pull request #507 from scorphus/assert-warns
#N/A: Assert deprecated warnings are raised
This commit is contained in:
commit
6bbd680e56
@ -202,6 +202,7 @@ class TestCompatibilityCall(object):
|
||||
assert settings == _settings
|
||||
return True
|
||||
|
||||
with pytest.warns(UserWarning):
|
||||
assert compatibility_call(match, Command())
|
||||
|
||||
def test_get_new_command(self):
|
||||
@ -217,6 +218,7 @@ class TestCompatibilityCall(object):
|
||||
assert settings == _settings
|
||||
return True
|
||||
|
||||
with pytest.warns(UserWarning):
|
||||
assert compatibility_call(get_new_command, Command())
|
||||
|
||||
def test_side_effect(self):
|
||||
@ -232,6 +234,7 @@ class TestCompatibilityCall(object):
|
||||
assert settings == _settings
|
||||
return True
|
||||
|
||||
with pytest.warns(UserWarning):
|
||||
assert compatibility_call(side_effect, Command(), Command())
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user