Move it out of consumer

This commit is contained in:
shamoon
2024-11-07 13:19:06 -08:00
parent af1c64e969
commit 0fcd69b739
4 changed files with 24 additions and 56 deletions
+2 -2
View File
@@ -248,6 +248,6 @@ class TestRetryConsumeTask(
self.assertIsFile(settings.CONSUMPTION_FAILED_DIR / task.task_file_name)
with mock.patch("documents.tasks.ProgressManager", DummyProgressManager):
with self.assertLogs("documents.tasks", level="INFO") as cm:
with self.assertLogs() as cm:
tasks.retry_failed_file(task_id=task.task_id, clean=True)
self.assertIn("PDF cleaned successfully", cm.output[0])
self.assertIn("New document id 1 created", cm.output[-1])