mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Use spaces instead of tabs
The is more common in python and follows other rules usage.
This commit is contained in:
		| @@ -4,12 +4,12 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='brew upgrade')]) | ||||
|     Command(script='brew upgrade')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('brew upgrade'), 'brew upgrade --all')]) | ||||
|     (Command('brew upgrade'), 'brew upgrade --all')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,14 +4,14 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='go run foo'),  | ||||
| 	Command(script='go run bar')]) | ||||
|     Command(script='go run foo'),  | ||||
|     Command(script='go run bar')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('go run foo'), 'go run foo.go'), | ||||
| 	(Command('go run bar'), 'go run bar.go')]) | ||||
|     (Command('go run foo'), 'go run foo.go'), | ||||
|     (Command('go run bar'), 'go run bar.go')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,14 +4,14 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='java foo.java'), | ||||
| 	Command(script='java bar.java')]) | ||||
|     Command(script='java foo.java'), | ||||
|     Command(script='java bar.java')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('java foo.java'), 'java foo'), | ||||
| 	(Command('java bar.java'), 'java bar')]) | ||||
|     (Command('java foo.java'), 'java foo'), | ||||
|     (Command('java bar.java'), 'java bar')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,14 +4,14 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='javac foo'),  | ||||
| 	Command(script='javac bar')]) | ||||
|     Command(script='javac foo'), | ||||
|     Command(script='javac bar')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('javac foo'), 'javac foo.java'), | ||||
| 	(Command('javac bar'), 'javac bar.java')]) | ||||
|     (Command('javac foo'), 'javac foo.java'), | ||||
|     (Command('javac bar'), 'javac bar.java')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,22 +4,22 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='open foo.com'),  | ||||
| 	Command(script='open foo.ly'),  | ||||
| 	Command(script='open foo.org'),  | ||||
| 	Command(script='open foo.net'),  | ||||
| 	Command(script='open foo.se'),  | ||||
| 	Command(script='open foo.io')]) | ||||
|     Command(script='open foo.com'), | ||||
|     Command(script='open foo.ly'), | ||||
|     Command(script='open foo.org'), | ||||
|     Command(script='open foo.net'), | ||||
|     Command(script='open foo.se'), | ||||
|     Command(script='open foo.io')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('open foo.com'), 'open http://foo.com'), | ||||
| 	(Command('open foo.ly'), 'open http://foo.ly'), | ||||
| 	(Command('open foo.org'), 'open http://foo.org'), | ||||
| 	(Command('open foo.net'), 'open http://foo.net'), | ||||
| 	(Command('open foo.se'), 'open http://foo.se'), | ||||
| 	(Command('open foo.io'), 'open http://foo.io')]) | ||||
|     (Command('open foo.com'), 'open http://foo.com'), | ||||
|     (Command('open foo.ly'), 'open http://foo.ly'), | ||||
|     (Command('open foo.org'), 'open http://foo.org'), | ||||
|     (Command('open foo.net'), 'open http://foo.net'), | ||||
|     (Command('open foo.se'), 'open http://foo.se'), | ||||
|     (Command('open foo.io'), 'open http://foo.io')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,14 +4,14 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script='python foo'),  | ||||
| 	Command(script='python bar')]) | ||||
|     Command(script='python foo'), | ||||
|     Command(script='python bar')]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command('python foo'), 'python foo.py'), | ||||
| 	(Command('python bar'), 'python bar.py')]) | ||||
|     (Command('python foo'), 'python foo.py'), | ||||
|     (Command('python bar'), 'python bar.py')]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
| @@ -4,16 +4,16 @@ from tests.utils import Command | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command', [ | ||||
| 	Command(script="git commit -m \'My Message\""), | ||||
|     Command(script="git commit -m \'My Message\""), | ||||
|     Command(script="git commit -am \"Mismatched Quotation Marks\'"), | ||||
|     Command(script="echo \"hello\'")]) | ||||
| def test_match(command): | ||||
| 	assert match(command, None) | ||||
|     assert match(command, None) | ||||
|  | ||||
|  | ||||
| @pytest.mark.parametrize('command, new_command', [ | ||||
| 	(Command("git commit -m \'My Message\""), "git commit -m \"My Message\""), | ||||
|     (Command("git commit -m \'My Message\""), "git commit -m \"My Message\""), | ||||
|     (Command("git commit -am \"Mismatched Quotation Marks\'"), "git commit -am \"Mismatched Quotation Marks\""), | ||||
|     (Command("echo \"hello\'"), "echo \"hello\"")]) | ||||
| def test_get_new_command(command, new_command): | ||||
| 	assert get_new_command(command, None) == new_command | ||||
|     assert get_new_command(command, None) == new_command | ||||
|   | ||||
		Reference in New Issue
	
	Block a user