Add missing commas
I haven't written Python in quite a long time :|
This commit is contained in:
parent
5474f902dd
commit
a617bc3ef4
@ -1581,7 +1581,7 @@ class TestShellCommand:
|
|||||||
({}, 'foobar'),
|
({}, 'foobar'),
|
||||||
({'placeholder': '{}'}, 'foo {} bar'),
|
({'placeholder': '{}'}, 'foo {} bar'),
|
||||||
({'placeholder': '{}'}, 'foo{}bar'),
|
({'placeholder': '{}'}, 'foo{}bar'),
|
||||||
({'placeholder': '{}'}, 'foo "bar {}"')
|
({'placeholder': '{}'}, 'foo "bar {}"'),
|
||||||
])
|
])
|
||||||
def test_validate_valid(self, klass, kwargs, val):
|
def test_validate_valid(self, klass, kwargs, val):
|
||||||
klass(**kwargs).validate(val)
|
klass(**kwargs).validate(val)
|
||||||
@ -1589,7 +1589,7 @@ class TestShellCommand:
|
|||||||
@pytest.mark.parametrize('kwargs, val', [
|
@pytest.mark.parametrize('kwargs, val', [
|
||||||
({}, ''),
|
({}, ''),
|
||||||
({'placeholder': '{}'}, 'foo bar'),
|
({'placeholder': '{}'}, 'foo bar'),
|
||||||
({'placeholder': '{}'}, 'foo { } bar')
|
({'placeholder': '{}'}, 'foo { } bar'),
|
||||||
({}, 'foo"'), # not splittable with shlex
|
({}, 'foo"'), # not splittable with shlex
|
||||||
])
|
])
|
||||||
def test_validate_invalid(self, klass, kwargs, val):
|
def test_validate_invalid(self, klass, kwargs, val):
|
||||||
|
Loading…
Reference in New Issue
Block a user