From 6af2182879576d551cfb9aaafa501cd36779f20d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 14 Dec 2021 19:20:29 -0800 Subject: [PATCH] Test print statements --- bookwyrm/tests/importers/test_importer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bookwyrm/tests/importers/test_importer.py b/bookwyrm/tests/importers/test_importer.py index 0ebbf8af..295e2aeb 100644 --- a/bookwyrm/tests/importers/test_importer.py +++ b/bookwyrm/tests/importers/test_importer.py @@ -146,6 +146,9 @@ class GenericImporter(TestCase): self.local_user, self.csv, False, "unlisted" ) items = import_job.items.all() + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print(items.count()) + print(import_job.pending_items.count()) for item in items[:3]: item.fail_reason = "hello" item.save() @@ -157,11 +160,13 @@ class GenericImporter(TestCase): notification_type="IMPORT", ).exists() ) + print(import_job.pending_items.count()) item = items[3] item.fail_reason = "hello" item.save() item.update_job() + print(import_job.pending_items.count()) import_job.refresh_from_db() self.assertTrue(import_job.complete) self.assertTrue(