1
0
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:
Vladimir Iakovlev 2016-05-17 02:22:34 +03:00
commit 6bbd680e56

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