mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Mock config module in utils test
This commit is contained in:
parent
62a1818287
commit
11d27ba694
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@ from distutils.version import LooseVersion # pylint: disable=import-error,no-na
|
|||
|
||||
# Import Salt Testing libs
|
||||
from salttesting.unit import skipIf, TestCase
|
||||
from salttesting.mock import NO_MOCK, NO_MOCK_REASON, patch
|
||||
from salttesting.mock import NO_MOCK, NO_MOCK_REASON, patch, MagicMock
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
|
@ -111,6 +111,7 @@ class BotoUtilsTestCaseBase(TestCase):
|
|||
salt.utils.boto.__context__ = {}
|
||||
salt.utils.boto.__opts__ = {}
|
||||
salt.utils.boto.__pillar__ = {}
|
||||
salt.utils.boto.__salt__ = {'config.option': MagicMock(return_value='dummy_opt')}
|
||||
|
||||
|
||||
class BotoUtilsCacheIdTestCase(BotoUtilsTestCaseBase):
|
||||
|
|
Loading…
Add table
Reference in a new issue