1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +00:00

#N/A: Assert deprecated warnings are raised

This commit is contained in:
Pablo Santiago Blum de Aguiar 2016-05-15 17:04:09 -03:00
parent d2b0b6e8ec
commit e5f8e9c0de

View File

@ -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())