mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix SaltKeyOptionParserTestCase test failures
This commit is contained in:
parent
186e2d0d03
commit
342884018b
1 changed files with 2 additions and 1 deletions
|
@ -684,7 +684,7 @@ class SaltKeyOptionParserTestCase(LogSettingsParserTests):
|
|||
parser = self.parser()
|
||||
mock_err = ErrorMock()
|
||||
|
||||
with patch('optparse.OptionParser.error', mock_err.error):
|
||||
with patch('salt.utils.parsers.OptionParser.error', mock_err.error):
|
||||
parser.parse_args(args)
|
||||
|
||||
# Check error msg
|
||||
|
@ -715,6 +715,7 @@ class SaltKeyOptionParserTestCase(LogSettingsParserTests):
|
|||
parser.parse_args(args)
|
||||
|
||||
with patch('salt.utils.parsers.is_writeable', MagicMock(return_value=True)):
|
||||
parser.parse_args(args)
|
||||
parser.setup_logfile_logger()
|
||||
|
||||
# Check config name absence in options
|
||||
|
|
Loading…
Add table
Reference in a new issue