mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
More print statements
This commit is contained in:
parent
6af2182879
commit
69204a1c94
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue