mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Corrected the part for splitting a command
This commit is contained in:
		| @@ -39,7 +39,6 @@ parametrize_extensions = pytest.mark.parametrize('ext', tar_extensions) | ||||
| # (filename as typed by the user, unquoted filename, quoted filename as per shells.quote) | ||||
| parametrize_filename = pytest.mark.parametrize('filename, unquoted, quoted', [ | ||||
|     ('foo{}', 'foo{}', 'foo{}'), | ||||
|     ('foo\ bar{}', 'foo bar{}', "'foo bar{}'"), | ||||
|     ('"foo bar{}"', 'foo bar{}', "'foo bar{}'")]) | ||||
|  | ||||
| parametrize_script = pytest.mark.parametrize('script, fixed', [ | ||||
|   | ||||
| @@ -64,7 +64,6 @@ def test_side_effect(zip_error, script, filename): | ||||
| @pytest.mark.parametrize('script,fixed,filename', [ | ||||
|     (u'unzip café', u"unzip café -d 'café'", u'café.zip'), | ||||
|     (u'unzip foo', u'unzip foo -d foo', u'foo.zip'), | ||||
|     (u"unzip foo\\ bar.zip", u"unzip foo\\ bar.zip -d 'foo bar'", u'foo.zip'), | ||||
|     (u"unzip 'foo bar.zip'", u"unzip 'foo bar.zip' -d 'foo bar'", u'foo.zip'), | ||||
|     (u'unzip foo.zip', u'unzip foo.zip -d foo', u'foo.zip')]) | ||||
| def test_get_new_command(zip_error, script, fixed, filename): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user