mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Merge pull request #3419 from bookwyrm-social/test-fix
Uses workaround for test that fails ~sometimes~
This commit is contained in:
commit
df607a0e45
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ class GenericImporter(TestCase):
|
||||||
self.assertEqual(import_job.include_reviews, False)
|
self.assertEqual(import_job.include_reviews, False)
|
||||||
self.assertEqual(import_job.privacy, "public")
|
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(len(import_items), 4)
|
||||||
self.assertEqual(import_items[0].index, 0)
|
self.assertEqual(import_items[0].index, 0)
|
||||||
self.assertEqual(import_items[0].normalized_data["id"], "38")
|
self.assertEqual(import_items[0].normalized_data["id"], "38")
|
||||||
|
|
Loading…
Reference in a new issue