XLSForm / pyxform

A Python package to create XForms for ODK Collect.
BSD 2-Clause "Simplified" License
80 stars 136 forks source link

Refactor test_trigger.py tests to use xml hierarchy test methods #563

Closed lindsay-stevens closed 2 years ago

lindsay-stevens commented 3 years ago

PR #548 added xml hierarchy test methods xml__xpath_exact and xml__xpath_count. The originating issue #448 describes cases related to trigger tests where the xml__contains approach was fragile. Many of the tests in test_trigger.py could be improved by using the new test methods.