ecb11043e9
We recently discovered that when the perfect conditions are present where: * libguestfs-dev/el and guestfs python bindings are installed and * unit tests are not being run in a venv or guestfs python bindings are installed in the tox venv the test will end up loading the guestfs module and try to call the real guestfs and possibly libvirt and fail because of it. Our unit tests shouldn't be loading modules like guestfs, so this adds proper mocking to the test along with a poison fixture that will prevent future accidental imports of such modules. Closes-Bug: #1994913 Change-Id: I676ee1fd33cf053681a07448759c28f0f2ad79d1 |
||
---|---|---|
.. | ||
mount | ||
vfs | ||
__init__.py | ||
test_api.py | ||
test_inject.py |