Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Jan 13, 2025
1 parent 32b7388 commit 17e4cbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion onadata/apps/main/tests/test_form_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def _add_metadata(self, data_type="doc"):
},
)
else:
self.doc = MetaData.objects.filter(data_type="supporting_doc")[0]
self.doc = (
MetaData.objects.all()
.exclude(data_type="export_repeat_register")
.reverse()[0]
)
self.doc_url = reverse(
download_metadata,
kwargs={
Expand Down

0 comments on commit 17e4cbb

Please sign in to comment.