mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 13:01:08 +00:00
Removes debugging print statements
This commit is contained in:
parent
6ba5d53d38
commit
e6d500df6b
1 changed files with 0 additions and 8 deletions
|
@ -146,11 +146,7 @@ class GenericImporter(TestCase):
|
||||||
self.local_user, self.csv, False, "unlisted"
|
self.local_user, self.csv, False, "unlisted"
|
||||||
)
|
)
|
||||||
items = import_job.items.all()
|
items = import_job.items.all()
|
||||||
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
|
||||||
print(items.count())
|
|
||||||
print(import_job.pending_items.count())
|
|
||||||
for item in items[:3]:
|
for item in items[:3]:
|
||||||
print(item.id)
|
|
||||||
item.fail_reason = "hello"
|
item.fail_reason = "hello"
|
||||||
item.save()
|
item.save()
|
||||||
item.update_job()
|
item.update_job()
|
||||||
|
@ -161,16 +157,12 @@ class GenericImporter(TestCase):
|
||||||
notification_type="IMPORT",
|
notification_type="IMPORT",
|
||||||
).exists()
|
).exists()
|
||||||
)
|
)
|
||||||
print(import_job.pending_items.count())
|
|
||||||
|
|
||||||
item = items.last()
|
item = items.last()
|
||||||
print(item.id)
|
|
||||||
print(item.fail_reason, item.book)
|
|
||||||
item.fail_reason = "hello"
|
item.fail_reason = "hello"
|
||||||
item.save()
|
item.save()
|
||||||
item.update_job()
|
item.update_job()
|
||||||
import_job.refresh_from_db()
|
import_job.refresh_from_db()
|
||||||
print(import_job.pending_items.count())
|
|
||||||
self.assertTrue(import_job.complete)
|
self.assertTrue(import_job.complete)
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
models.Notification.objects.filter(
|
models.Notification.objects.filter(
|
||||||
|
|
Loading…
Reference in a new issue