Skip to content

Commit

Permalink
testing: Add missing mock to test_vmware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed Aug 16, 2021
1 parent 0bf8d57 commit bfb704c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unittests/test_datasource/test_vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def setUp(self):
super(TestDataSourceVMware, self).setUp()
self.tmp = self.tmp_dir()

def test_no_data_access_method(self):
@mock.patch(
"cloudinit.sources.DataSourceVMware.util._is_container_systemd",
return_value=False)
def test_no_data_access_method(self, m_is_systemd):
ds = get_ds(self.tmp)
ds.vmware_rpctool = None
ret = ds.get_data()
Expand Down

0 comments on commit bfb704c

Please sign in to comment.