mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 19:10:35 +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())
|
print(import_job.pending_items.count())
|
||||||
|
|
||||||
item = items[3]
|
item = items.last()
|
||||||
print(item.id)
|
print(item.id)
|
||||||
print(item.fail_reason, item.book)
|
print(item.fail_reason, item.book)
|
||||||
item.fail_reason = "hello"
|
item.fail_reason = "hello"
|
||||||
item.save()
|
item.save()
|
||||||
item.update_job()
|
item.update_job()
|
||||||
print(import_job.pending_items.count())
|
|
||||||
import_job.refresh_from_db()
|
import_job.refresh_from_db()
|
||||||
print(import_job.pending_items.count())
|
print(import_job.pending_items.count())
|
||||||
self.assertTrue(import_job.complete)
|
self.assertTrue(import_job.complete)
|
||||||
|
|
Loading…
Reference in a new issue