tea_preview job: one file previewed, result as run output: GET /runs/{id}?outputs=true; the TEA gate also previews one hospital EDF

This commit is contained in:
2026-11-28 13:37:27 -06:00
parent 3438a3135b
commit 70c9506b97
3 changed files with 97 additions and 7 deletions
+18
View File
@@ -95,6 +95,24 @@ def test_shape_progress_tag():
assert shape(PAYLOAD | {"status": "UNKNOWN"}, []).state == "running"
def test_shape_outputs():
events = [
{
"__typename": "ExecutionStepOutputEvent",
"stepKey": "preview_study",
"outputName": "result",
"metadataEntries": [
{"label": "result", "jsonString": '{"eeg": {"valid": false}}'},
{"label": "text"},
],
},
]
assert shape(PAYLOAD, events, outputs=True).outputs == {
"preview_study.result": {"eeg": {"valid": False}}
}
assert shape(PAYLOAD, events, outputs=False).outputs is None
def _ok(response):
assert response.status_code == 200, response.text
return response.json()