mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Mock config module in utils test
This commit is contained in:
parent
62a1818287
commit
11d27ba694
@ -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…
Reference in New Issue
Block a user