diff --git a/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xls b/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xls deleted file mode 100644 index 5ebf7f588b..0000000000 Binary files a/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xls and /dev/null differ diff --git a/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xlsx b/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xlsx index 890f26b8f6..62717f42c2 100644 Binary files a/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xlsx and b/onadata/apps/main/tests/fixtures/group_names_must_be_unique.xlsx differ diff --git a/onadata/apps/main/tests/test_past_bugs.py b/onadata/apps/main/tests/test_past_bugs.py index 573bb31b64..c2b6b7053e 100644 --- a/onadata/apps/main/tests/test_past_bugs.py +++ b/onadata/apps/main/tests/test_past_bugs.py @@ -13,13 +13,20 @@ class TestInputs(TestBase): """ def test_uniqueness_of_group_names_enforced(self): + """ + Test an error is raised when a form containing a group + with the name "data" is present within the form. + + This error is raised due to the fact that the root node + is named "data" + """ pre_count = XForm.objects.count() self._create_user_and_login() self.assertRaisesMessage( PyXFormError, - "There are two sections with the name group_names_must_be_unique.", + "There are two sections with the name data.", self._publish_xls_file, - 'fixtures/group_names_must_be_unique.xls') + 'fixtures/group_names_must_be_unique.xlsx') self.assertEqual(XForm.objects.count(), pre_count) def test_mch(self):