Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Feb 6, 2024
1 parent 468afd7 commit 82b207e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions onadata/libs/tests/serializers/test_xform_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""
Test onadata.libs.serializers.xform_serializer
"""
import json
import os

from django.test import TestCase
Expand Down Expand Up @@ -79,6 +80,13 @@ def test_entity_dataset_hash(self):
"trees_registration.xlsx",
)
self._publish_xls_file(xlsx_path)
reg_form = XForm.objects.first()
reg_form.versions.create(
xls=reg_form.xls,
version=reg_form.version,
xml=reg_form.xml,
json=json.dumps(reg_form.json),
)
# Publish follow up form
xlsx_path = os.path.join(
self.this_directory,
Expand Down

0 comments on commit 82b207e

Please sign in to comment.