From d7ef86293ea643a929d46414efde35a028933311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 25 Mar 2019 10:16:43 +0100 Subject: [PATCH] tests: Skip tests if libmodulemd is not available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These tests need the library, and will crash without it. Signed-off-by: Lubomír Sedlář --- tests/test_pkgset_source_koji.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_pkgset_source_koji.py b/tests/test_pkgset_source_koji.py index 4a316ed0..8ea2df62 100644 --- a/tests/test_pkgset_source_koji.py +++ b/tests/test_pkgset_source_koji.py @@ -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):