forked from mirrors/bookwyrm
Deterministic ordering for OL import test
This commit is contained in:
parent
a8ae427aeb
commit
6745cd73cc
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ class OpenLibraryImport(TestCase):
|
|||
self.local_user, self.csv, False, "public"
|
||||
)
|
||||
|
||||
import_items = models.ImportItem.objects.filter(job=import_job).all()
|
||||
import_items = (
|
||||
models.ImportItem.objects.filter(job=import_job).order_by("index").all()
|
||||
)
|
||||
self.assertEqual(len(import_items), 4)
|
||||
self.assertEqual(import_items[0].index, 0)
|
||||
self.assertEqual(import_items[0].data["Work Id"], "OL102749W")
|
||||
|
|
Loading…
Reference in a new issue