jenkins-job-builder/tests/xml_config
Daniel Watkins e6d6c276d1 Give an explicit error message when unsupported view type used
When specifying a view type that isn't supported by any modules (such as
"list-view" instead of "list"), this ensures that the user is guided
towards something correct.

This changes the error message in this case from:

AttributeError: 'NoneType' object has no attribute 'name'

to:

jenkins_jobs.errors.JenkinsJobsException: Unrecognized view type: list-view (supported types are: list, pipeline)

Change-Id: I0ee800db1c9c8aeecffcf11f1e86c03ba0590da8
2017-10-06 14:24:48 -04:00
..
exceptions Give an explicit error message when unsupported view type used 2017-10-06 14:24:48 -04:00
__init__.py Enable and fix xml_config tests 2016-11-21 13:56:33 +00:00
test_xml_config.py Give an explicit error message when unsupported view type used 2017-10-06 14:24:48 -04:00