@@ -892,7 +892,7 @@ def test_retrieve_instance_frames_jls(
892
892
cache_filename = str (cache_dir .joinpath ('retrieve_instance_pixeldata.jls' ))
893
893
with open (cache_filename , 'rb' ) as f :
894
894
content = f .read ()
895
- headers = {'content-type' : f'multipart/related; type="{ media_type } "' , }
895
+ headers = {'content-type' : f'multipart/related; type="{ media_type } "' }
896
896
httpserver .serve_content (content = content , code = 200 , headers = headers )
897
897
study_instance_uid = '1.2.3'
898
898
series_instance_uid = '1.2.4'
@@ -917,6 +917,7 @@ def test_retrieve_instance_frames_jls(
917
917
assert request .path == expected_path
918
918
assert request .accept_mimetypes [0 ][0 ][:35 ] == headers ['content-type' ][:35 ]
919
919
920
+
920
921
@pytest .mark .parametrize (
921
922
"media_type" , ["image/dicom-rle" , "image/x-dicom-rle" ]
922
923
)
@@ -929,7 +930,7 @@ def test_retrieve_instance_frames_rle(
929
930
cache_filename = str (cache_dir .joinpath ('retrieve_instance_pixeldata.rle' ))
930
931
with open (cache_filename , 'rb' ) as f :
931
932
content = f .read ()
932
- headers = {'content-type' : f'multipart/related; type="{ media_type } "' , }
933
+ headers = {'content-type' : f'multipart/related; type="{ media_type } "' }
933
934
httpserver .serve_content (content = content , code = 200 , headers = headers )
934
935
study_instance_uid = '1.2.3'
935
936
series_instance_uid = '1.2.4'
0 commit comments