tests: mock vmm.xs

Now it is needed by some unit tests (those calling create_qdb_entries).
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-15 15:58:34 +01:00
parent ae7031fe7e
commit d2a7cbb83e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -20,6 +20,7 @@
# License along with this library; if not, see <https://www.gnu.org/licenses/>.
#
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