@@ -892,7 +892,7 @@ def test_retrieve_instance_frames_jls(
892892 cache_filename = str (cache_dir .joinpath ('retrieve_instance_pixeldata.jls' ))
893893 with open (cache_filename , 'rb' ) as f :
894894 content = f .read ()
895- headers = {'content-type' : f'multipart/related; type="{ media_type } "' , }
895+ headers = {'content-type' : f'multipart/related; type="{ media_type } "' }
896896 httpserver .serve_content (content = content , code = 200 , headers = headers )
897897 study_instance_uid = '1.2.3'
898898 series_instance_uid = '1.2.4'
@@ -917,6 +917,7 @@ def test_retrieve_instance_frames_jls(
917917 assert request .path == expected_path
918918 assert request .accept_mimetypes [0 ][0 ][:35 ] == headers ['content-type' ][:35 ]
919919
920+
920921@pytest .mark .parametrize (
921922 "media_type" , ["image/dicom-rle" , "image/x-dicom-rle" ]
922923)
@@ -929,7 +930,7 @@ def test_retrieve_instance_frames_rle(
929930 cache_filename = str (cache_dir .joinpath ('retrieve_instance_pixeldata.rle' ))
930931 with open (cache_filename , 'rb' ) as f :
931932 content = f .read ()
932- headers = {'content-type' : f'multipart/related; type="{ media_type } "' , }
933+ headers = {'content-type' : f'multipart/related; type="{ media_type } "' }
933934 httpserver .serve_content (content = content , code = 200 , headers = headers )
934935 study_instance_uid = '1.2.3'
935936 series_instance_uid = '1.2.4'
0 commit comments