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:
Lubomír Sedlář 2019-03-25 10:16:43 +01:00
parent 66a127c313
commit d7ef86293e

View File

@ -680,6 +680,7 @@ class MockModule(object):
@mock.patch("pungi.Modulemd.Module.new_from_file", new=MockModule)
@unittest.skipIf(Modulemd is None, "Skipping tests, no module support")
class TestAddModuleToVariant(unittest.TestCase):
def setUp(self):