test: add send_to_all_destinations step to test_status_filter_completed
The terminal-step guard requires send_to_all_destinations: success before a file is considered "completed". Update test_status_filter_completed to include this step so it matches the new semantics. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -253,12 +253,13 @@ class TestStatusFilter:
|
|||||||
db_session.add(file_record)
|
db_session.add(file_record)
|
||||||
db_session.flush()
|
db_session.flush()
|
||||||
|
|
||||||
step = FileProcessingStep(
|
for step_name in ("extract_text", "send_to_all_destinations"):
|
||||||
file_id=file_record.id,
|
step = FileProcessingStep(
|
||||||
step_name="extract_text",
|
file_id=file_record.id,
|
||||||
status="success",
|
step_name=step_name,
|
||||||
)
|
status="success",
|
||||||
db_session.add(step)
|
)
|
||||||
|
db_session.add(step)
|
||||||
db_session.commit()
|
db_session.commit()
|
||||||
|
|
||||||
# Test completed filter
|
# Test completed filter
|
||||||
|
|||||||
Reference in New Issue
Block a user