test(jobs): align outputs_count assertions with text-as-metadata semantics
The master merge stopped counting text entries as outputs (they are preview-only metadata). Update the two preview-priority tests so their count assertions match; the media-over-text preview assertions are unchanged.
This commit is contained in:
parent
aa6dbb8a5a
commit
28890f0be8
|
|
@ -288,7 +288,8 @@ class TestGetOutputsSummary:
|
|||
'image_node': {'images': [{'filename': 'preview.png', 'type': 'temp'}]},
|
||||
}
|
||||
count, preview = get_outputs_summary(outputs)
|
||||
assert count == 2
|
||||
# Text is preview-only metadata and not counted; only the image counts.
|
||||
assert count == 1
|
||||
assert preview['filename'] == 'preview.png'
|
||||
assert preview['mediaType'] == 'images'
|
||||
|
||||
|
|
@ -298,7 +299,7 @@ class TestGetOutputsSummary:
|
|||
'text_node': {'text': ['hello world']},
|
||||
}
|
||||
count, preview = get_outputs_summary(outputs)
|
||||
assert count == 1
|
||||
assert count == 0 # text entries are not counted as outputs
|
||||
assert preview['mediaType'] == 'text'
|
||||
assert preview['content'] == 'hello world'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue