Closed cfournie closed 7 years ago
This PR adds/changes utilities to make testing Oozie workflow XML a bit easier. Specifically:
ParsedXml
ElementTree
assert_valid_workflow
These are used to test XML workflow generation in https://github.com/Shopify/pyoozie/pull/46.
This PR adds/changes utilities to make testing Oozie workflow XML a bit easier. Specifically:
ParsedXml
will parse an XML string once usingElementTree
and then allows users to assert using XPath that a single tag:assert_valid_workflow
checks to make sure that duplicate names are not defined (and fixes an encoding issue)These are used to test XML workflow generation in https://github.com/Shopify/pyoozie/pull/46.