mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Remove useless mocked unit test
This commit is contained in:
parent
73b90f155e
commit
1f3eb1c526
@ -30,16 +30,6 @@ class DefaultsTestCase(TestCase):
|
||||
'''
|
||||
Test cases for salt.modules.defaults
|
||||
'''
|
||||
# 'get' function tests: 1
|
||||
|
||||
def test_get(self):
|
||||
'''
|
||||
Test if it execute a defaults client run and return a dict
|
||||
'''
|
||||
mock = MagicMock(return_value='')
|
||||
with patch.dict(defaults.__salt__, {'pillar.get': mock}):
|
||||
self.assertEqual(defaults.get('core:users:root'), '')
|
||||
|
||||
@patch('salt.modules.defaults.get',
|
||||
MagicMock(return_value={'users': {'root': [0]}}))
|
||||
def test_get_mock(self):
|
||||
|
Loading…
Reference in New Issue
Block a user