From d2a7cbb83e8db7b9375ec0ab443e390b6cb0a354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 15 Jan 2018 15:58:34 +0100 Subject: [PATCH] tests: mock vmm.xs Now it is needed by some unit tests (those calling create_qdb_entries). --- qubes/tests/vm/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/tests/vm/__init__.py b/qubes/tests/vm/__init__.py index 92a3a044..d42148ec 100644 --- a/qubes/tests/vm/__init__.py +++ b/qubes/tests/vm/__init__.py @@ -20,6 +20,7 @@ # License along with this library; if not, see . # import jinja2 +import unittest.mock import qubes.tests @@ -27,6 +28,8 @@ class TestVMM(object): # pylint: disable=too-few-public-methods def __init__(self, offline_mode=False): self.offline_mode = offline_mode + self.xs = unittest.mock.Mock() + @property def libvirt_conn(self): import libvirt