mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +00:00 
			
		
		
		
	Fix flake8 errors: F811 redefinition of unused...
This commit is contained in:
		| @@ -11,16 +11,6 @@ def file_exists(mocker): | ||||
| get_stderr = "ln: failed to create symbolic link '{}': File exists".format | ||||
|  | ||||
|  | ||||
| @pytest.mark.usefixtures('file_exists') | ||||
| @pytest.mark.parametrize('script', [ | ||||
|     'ln -s dest source', | ||||
|     'ln dest -s source', | ||||
|     'ln dest source -s']) | ||||
| def test_match(script): | ||||
|     stderr = get_stderr('source') | ||||
|     assert match(Command(script, stderr=stderr)) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('script, stderr, exists', [ | ||||
|     ('ln dest source', get_stderr('source'), True), | ||||
|     ('ls -s dest source', get_stderr('source'), True), | ||||
| @@ -38,4 +28,5 @@ def test_not_match(file_exists, script, stderr, exists): | ||||
|     ('ln dest source -s', 'ln source -s dest')]) | ||||
| def test_match(script, result): | ||||
|     stderr = get_stderr('source') | ||||
|     assert match(Command(script, stderr=stderr)) | ||||
|     assert get_new_command(Command(script, stderr=stderr)) == result | ||||
|   | ||||
		Reference in New Issue
	
	Block a user