mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-27 18:40:31 +00:00
trying item.last instead of going by list lookup
This commit is contained in:
parent
69204a1c94
commit
6ba5d53d38
1 changed files with 1 additions and 2 deletions
|
@ -163,13 +163,12 @@ class GenericImporter(TestCase):
|
|||
)
|
||||
print(import_job.pending_items.count())
|
||||
|
||||
item = items[3]
|
||||
item = items.last()
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue