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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user