From 549b9423d6fd5ddfba72368dce6b28ee4e61e919 Mon Sep 17 00:00:00 2001 From: john-dupuy Date: Mon, 13 May 2019 14:26:53 -0400 Subject: [PATCH] Add a skip if the template is not available in customization templates --- cfme/tests/services/test_iso_service_catalogs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cfme/tests/services/test_iso_service_catalogs.py b/cfme/tests/services/test_iso_service_catalogs.py index c613406ff5..b1e6748e08 100644 --- a/cfme/tests/services/test_iso_service_catalogs.py +++ b/cfme/tests/services/test_iso_service_catalogs.py @@ -33,7 +33,12 @@ @pytest.fixture(scope="module") def iso_cust_template(provider, appliance): iso_cust_template = provider.data['provisioning']['iso_kickstart'] - return get_template_from_config(iso_cust_template, create=True, appliance=appliance) + try: + return get_template_from_config(iso_cust_template, create=True, appliance=appliance) + except KeyError: + pytest.skip("No such template '{}' available in 'customization_templates'".format( + iso_cust_template + )) @pytest.fixture(scope="module")