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

Commit

Permalink
Merge pull request #8822 from john-dupuy/add-skip-rhv-iso-servicecatalog
Browse files Browse the repository at this point in the history
[1LP][RFR] Add a skip if the template is not available in customization templates
  • Loading branch information
jawatts authored May 14, 2019
2 parents 67afb4c + 549b942 commit fb2a752
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 fb2a752

Please sign in to comment.