Skip to content

Commit

Permalink
Use correct node name
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa committed Sep 11, 2019
1 parent 1326461 commit 16dd22d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pyxform/tests_v1/test_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,15 @@ def test_hints_are_present_within_repeats(self):
""" # noqa

expected = """
<group ref="/Families/pets">
<group ref="/pyxform_autotestname/pets">
<label>Pets</label>
<hint>Pet details</hint>
<repeat nodeset="/Families/pets">
<input ref="/Families/pets/pets_name">
<label>Pet's Name</label>
<hint>Pets name hint</hint>
<repeat nodeset="/pyxform_autotestname/pets">
<input ref="/pyxform_autotestname/pets/pets_name">
<label>Pet's name</label>
<hint>Pet's name hint</hint>
</input>
<select1 ref="/Families/pets/pet_type">
<select1 ref="/pyxform_autotestname/pets/pet_type">
<label>Type of pet</label>
<hint>Type of pet hint</hint>
<item>
Expand All @@ -235,15 +234,15 @@ def test_hints_are_present_within_repeats(self):
<value>fish</value>
</item>
</select1>
<upload mediatype="image/*" ref="/Families/pets/pet_picture">
<upload mediatype="image/*" ref="/pyxform_autotestname/pets/pet_picture">
<label>Picture of pet</label>
<hint>Take a nice photo</hint>
</upload>
</repeat>
</group>
""" # noqa
"""

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

def test_hints_are_present_within_groups(self):
"""Tests that hints are present within groups."""
Expand Down

0 comments on commit 16dd22d

Please sign in to comment.