mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Merge pull request #507 from scorphus/assert-warns
#N/A: Assert deprecated warnings are raised
This commit is contained in:
		| @@ -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()) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user