tests: Skip tests if libmodulemd is not available
These tests need the library, and will crash without it. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
66a127c313
commit
d7ef86293e
@ -680,6 +680,7 @@ class MockModule(object):
|
|||||||
|
|
||||||
|
|
||||||
@mock.patch("pungi.Modulemd.Module.new_from_file", new=MockModule)
|
@mock.patch("pungi.Modulemd.Module.new_from_file", new=MockModule)
|
||||||
|
@unittest.skipIf(Modulemd is None, "Skipping tests, no module support")
|
||||||
class TestAddModuleToVariant(unittest.TestCase):
|
class TestAddModuleToVariant(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user