Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Add a skip if the template is not available in customization templates
Browse files Browse the repository at this point in the history
  • Loading branch information
john-dupuy committed May 13, 2019
1 parent 7ef6a3f commit 549b942
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cfme/tests/services/test_iso_service_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 549b942

Please sign in to comment.