mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23633 from jayeshka/win_network-2015.5-unit-test
made changes to test_interfaces function.
This commit is contained in:
commit
bc8faf1543
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ class WinNetworkTestCase(TestCase):
|
|||
'''
|
||||
Test if it return information about all the interfaces on the minion
|
||||
'''
|
||||
self.assertTrue(win_network.interfaces())
|
||||
with patch.object(salt.utils.network, 'win_interfaces',
|
||||
MagicMock(return_value=True)):
|
||||
self.assertTrue(win_network.interfaces())
|
||||
|
||||
# 'hw_addr' function tests: 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue