More print statements

This commit is contained in:
Mouse Reeve 2021-12-14 19:38:28 -08:00
parent 6af2182879
commit 69204a1c94

View file

@ -150,6 +150,7 @@ class GenericImporter(TestCase):
print(items.count())
print(import_job.pending_items.count())
for item in items[:3]:
print(item.id)
item.fail_reason = "hello"
item.save()
item.update_job()
@ -163,11 +164,14 @@ class GenericImporter(TestCase):
print(import_job.pending_items.count())
item = items[3]
print(item.id)
print(item.fail_reason, item.book)
item.fail_reason = "hello"
item.save()
item.update_job()
print(import_job.pending_items.count())
import_job.refresh_from_db()
print(import_job.pending_items.count())
self.assertTrue(import_job.complete)
self.assertTrue(
models.Notification.objects.filter(