Skip to content

Commit

Permalink
tests: mock vmm.xs
Browse files Browse the repository at this point in the history
Now it is needed by some unit tests (those calling create_qdb_entries).
  • Loading branch information
marmarek committed Jan 15, 2018
1 parent ae7031f commit d2a7cbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qubes/tests/vm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@
# License along with this library; if not, see <https://www.gnu.org/licenses/>.
#
import jinja2
import unittest.mock

import qubes.tests

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
Expand Down

0 comments on commit d2a7cbb

Please sign in to comment.