mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-15 10:26:42 +00:00
Fix a couple dispatched renames
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -59,7 +59,7 @@ def finish_dispatch(task: PaperlessTask, result_data: dict) -> None:
|
||||
return
|
||||
parent.dispatched = True
|
||||
parent.result_data = result_data
|
||||
parent.save(update_fields=["dispatch_complete", "result_data"])
|
||||
parent.save(update_fields=["dispatched", "result_data"])
|
||||
_finalize_parent(parent)
|
||||
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ def test_fast_children_wait_for_dispatch_to_finish(operation, outcome):
|
||||
complete(PaperlessTask.objects.get(task_id=task_id), outcome)
|
||||
parent.refresh_from_db()
|
||||
assert parent.status == PaperlessTask.Status.STARTED
|
||||
assert not parent.dispatch_complete
|
||||
assert not parent.dispatched
|
||||
|
||||
with (
|
||||
mock.patch(
|
||||
|
||||
Reference in new issue
Block a user