From 69204a1c94bd02684d4d27a54b9946e9bb74dab6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 14 Dec 2021 19:38:28 -0800 Subject: [PATCH] More print statements --- bookwyrm/tests/importers/test_importer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookwyrm/tests/importers/test_importer.py b/bookwyrm/tests/importers/test_importer.py index 295e2aeb7..ea0dbbe75 100644 --- a/bookwyrm/tests/importers/test_importer.py +++ b/bookwyrm/tests/importers/test_importer.py @@ -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(