1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 14:48:49 +00:00

Fix missing quotes from test

This commit is contained in:
David 2018-01-05 16:28:48 +00:00
parent 9777bf8833
commit 2d83f134b3

View File

@ -20,7 +20,7 @@ def new_command(branch_name):
@pytest.mark.parametrize('script, src_branch_name, branch_name', [
('git branch foo', 'foo', 'foo'),
('git checkout bar', 'bar', 'bar'),
('git checkout -b "let\s-push-this"', '"let\s-push-this"', '"let\s-push-this"')])
('git checkout -b "let\'s-push-this"', '"let\'s-push-this"', '"let\'s-push-this"')])
def test_match(output, script, branch_name):
assert match(Command(script, output))
@ -28,7 +28,7 @@ def test_match(output, script, branch_name):
@pytest.mark.parametrize('script', [
'git branch foo',
'git checkout bar',
'git checkout -b "let\s-push-this"'])
'git checkout -b "let\'s-push-this"'])
def test_not_match(script):
assert not match(Command(script, ''))