[tests] Mock Popen() in module tests
This commit is contained in:
parent
c23af541e4
commit
2e2351a69e
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class TestGenericModules(unittest.TestCase):
|
||||||
widget.set("variable", "value")
|
widget.set("variable", "value")
|
||||||
self.assertEquals(widget.get("variable", None), "value")
|
self.assertEquals(widget.get("variable", None), "value")
|
||||||
|
|
||||||
def test_update(self):
|
@mock.patch("subprocess.Popen")
|
||||||
|
def test_update(self, mock_output):
|
||||||
for mod in self.objects:
|
for mod in self.objects:
|
||||||
widgets = self.objects[mod].widgets()
|
widgets = self.objects[mod].widgets()
|
||||||
self.objects[mod].update(widgets)
|
self.objects[mod].update(widgets)
|
||||||
|
|
Loading…
Reference in a new issue