Skip to content

Commit 0881a8e

Browse files
committed
add image to test_upload contents
1 parent e6e48c5 commit 0881a8e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
700 KB
Loading

tests/test_ipr/test_upload.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ def loaded_reports(tmp_path_factory) -> Generator:
8888
"hlaTypes": json.loads(
8989
pd.read_csv(get_test_file("hla_variants.tab"), sep="\t").to_json(orient="records")
9090
),
91+
"images": [
92+
{
93+
"key": "cnvLoh.circos",
94+
"path": "test/testData/images/cnvLoh.png",
95+
"caption": "Test adding a caption to an image"
96+
}
97+
],
9198
}
9299
json_file.write_text(
93100
json.dumps(
@@ -147,7 +154,6 @@ def loaded_reports(tmp_path_factory) -> Generator:
147154
"async": (async_patient_id, async_loaded_report),
148155
}
149156
yield loaded_reports_result
150-
return
151157
ipr_conn.delete(uri=f"reports/{loaded_report['reports'][0]['ident']}")
152158
ipr_conn.delete(uri=f"reports/{async_loaded_report['reports'][0]['ident']}")
153159

0 commit comments

Comments
 (0)