diff --git a/pyxform/tests_v1/test_fields.py b/pyxform/tests_v1/test_fields.py index e42596568..dc8b7b55f 100644 --- a/pyxform/tests_v1/test_fields.py +++ b/pyxform/tests_v1/test_fields.py @@ -100,7 +100,7 @@ def test_duplicate_choice_list_with_setting(self): """ expected = """ - + @@ -116,7 +116,7 @@ def test_duplicate_choice_list_with_setting(self): """ - self.assertPyxformXform(md=md, model__contins=[expected], run_odk_validate=True) + self.assertPyxformXform(md=md, xml__contains=[expected], run_odk_validate=True) def test_choice_list_without_duplicates_is_successful(self): md = """ @@ -133,7 +133,7 @@ def test_choice_list_without_duplicates_is_successful(self): """ expected = """ - + @@ -145,4 +145,4 @@ def test_choice_list_without_duplicates_is_successful(self): """ - self.assertPyxformXform(md=md, model__contins=[expected], run_odk_validate=True) + self.assertPyxformXform(md=md, xml__contains=[expected], run_odk_validate=True) diff --git a/pyxform/tests_v1/test_repeat.py b/pyxform/tests_v1/test_repeat.py index a23259c57..e6bedc1d9 100644 --- a/pyxform/tests_v1/test_repeat.py +++ b/pyxform/tests_v1/test_repeat.py @@ -187,8 +187,8 @@ def test_indexed_repeat_relative_path(self): ], ) - def test_hints_are_present_within_repeats(self): - """Hints are present within repeats""" + def test_hints_are_not_present_within_repeats(self): + """Hints are not present within repeats""" md = """ | survey | | | | | | | type | name | label | hint | @@ -206,16 +206,14 @@ def test_hints_are_present_within_repeats(self): """ # noqa expected = """ - - + - Pet details - - - - Pets name hint + + + + Pet's name hint - + Type of pet hint @@ -235,15 +233,15 @@ def test_hints_are_present_within_repeats(self): fish - + Take a nice photo - """ # noqa +""" - self.assertPyxformXform(md=md, model__contins=[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.""" diff --git a/pyxform/tests_v1/test_support_external_instances.py b/pyxform/tests_v1/test_support_external_instances.py index 035aa7a32..c1a39cb9b 100644 --- a/pyxform/tests_v1/test_support_external_instances.py +++ b/pyxform/tests_v1/test_support_external_instances.py @@ -183,14 +183,12 @@ def test_external_choices_sheet_values_required(self): | | cities | Kisumu | | | cities | Mombasa | """ - expected = [ - """ - - """ - ] # noqa + expected = """ + +""" + self.assertPyxformXform( - md=md, debug=False, model__contins=[expected], run_odk_validate=True + md=md, debug=False, xml__contains=[expected], run_odk_validate=True ) def test_list_name_not_in_external_choices_sheet_raises_error(self):