tests: mock vmm.xs
Now it is needed by some unit tests (those calling create_qdb_entries).
This commit is contained in:
parent
ae7031fe7e
commit
d2a7cbb83e
@ -20,6 +20,7 @@
|
|||||||
# License along with this library; if not, see <https://www.gnu.org/licenses/>.
|
# License along with this library; if not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
import jinja2
|
import jinja2
|
||||||
|
import unittest.mock
|
||||||
|
|
||||||
import qubes.tests
|
import qubes.tests
|
||||||
|
|
||||||
@ -27,6 +28,8 @@ class TestVMM(object):
|
|||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
def __init__(self, offline_mode=False):
|
def __init__(self, offline_mode=False):
|
||||||
self.offline_mode = offline_mode
|
self.offline_mode = offline_mode
|
||||||
|
self.xs = unittest.mock.Mock()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def libvirt_conn(self):
|
def libvirt_conn(self):
|
||||||
import libvirt
|
import libvirt
|
||||||
|
Loading…
Reference in New Issue
Block a user