tests: fix to pass integer as verbosity
This commit is contained in:
parent
c4a80cb6c5
commit
10729f15c9
|
@ -63,14 +63,14 @@ def test_check_action_invalid_certificat(monkeypatch):
|
|||
assert 'has no valid certificate' in str(e_info.value)
|
||||
|
||||
def test_handle():
|
||||
kwargs = {'verbosity': 'verbosity value',
|
||||
kwargs = {'verbosity': 0,
|
||||
'timeout': 'timeout value',
|
||||
'permissive': 'permissive value'}
|
||||
command = Command()
|
||||
command.run_cook = Mock()
|
||||
|
||||
command.handle('recipe.json', **kwargs)
|
||||
assert command.verbosity == 'verbosity value'
|
||||
assert command.verbosity == 0
|
||||
assert command.timeout == 'timeout value'
|
||||
assert command.permissive == 'permissive value'
|
||||
assert command.run_cook.mock_calls == [call('recipe.json')]
|
||||
|
|
Loading…
Reference in New Issue