Skip to content

Commit

Permalink
Merge pull request #3419 from bookwyrm-social/test-fix
Browse files Browse the repository at this point in the history
Uses workaround for test that fails ~sometimes~
  • Loading branch information
mouse-reeve authored Aug 26, 2024
2 parents 413c26b + bd773f4 commit df607a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bookwyrm/tests/importers/test_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def test_create_job(self, *_):
self.assertEqual(import_job.include_reviews, False)
self.assertEqual(import_job.privacy, "public")

import_items = models.ImportItem.objects.filter(job=import_job).all()
import_items = (
models.ImportItem.objects.filter(job=import_job).all().order_by("id")
)
self.assertEqual(len(import_items), 4)
self.assertEqual(import_items[0].index, 0)
self.assertEqual(import_items[0].normalized_data["id"], "38")
Expand Down

0 comments on commit df607a0

Please sign in to comment.