Skip to content

Commit

Permalink
Use new query syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa committed Sep 9, 2019
1 parent 774b582 commit 9a93453
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pyxform/tests_v1/test_support_external_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ def test_external_choices_sheet_values_required(self):
| | cities | Kisumu |
| | cities | Mombasa |
"""
expected = [
"""<itemset nodeset="instance('cities')/root/item">
<value ref="name"/>
<label ref="label"/>
</itemset>"""
] # noqa
expected = """
<input query="instance('cities')/root/item[S1= /pyxform_autotestname/S1 and county= /pyxform_autotestname/county ]" ref="/pyxform_autotestname/city">
"""

self.assertPyxformXform(
md=md, debug=True, model__contains=[expected], run_odk_validate=True
md=md, debug=True, xml__contains=[expected], run_odk_validate=True
)

def test_list_name_not_in_external_choices_sheet_raises_error(self):
Expand Down

0 comments on commit 9a93453

Please sign in to comment.