Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Oct 19, 2024
1 parent 2840c16 commit d9facae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def test_retrieve_instance_frames_jls(
cache_filename = str(cache_dir.joinpath('retrieve_instance_pixeldata.jls'))
with open(cache_filename, 'rb') as f:
content = f.read()
headers = {'content-type': f'multipart/related; type="{media_type}"',}
headers = {'content-type': f'multipart/related; type="{media_type}"'}
httpserver.serve_content(content=content, code=200, headers=headers)
study_instance_uid = '1.2.3'
series_instance_uid = '1.2.4'
Expand All @@ -917,6 +917,7 @@ def test_retrieve_instance_frames_jls(
assert request.path == expected_path
assert request.accept_mimetypes[0][0][:35] == headers['content-type'][:35]


@pytest.mark.parametrize(
"media_type", ["image/dicom-rle", "image/x-dicom-rle"]
)
Expand All @@ -929,7 +930,7 @@ def test_retrieve_instance_frames_rle(
cache_filename = str(cache_dir.joinpath('retrieve_instance_pixeldata.rle'))
with open(cache_filename, 'rb') as f:
content = f.read()
headers = {'content-type': f'multipart/related; type="{media_type}"',}
headers = {'content-type': f'multipart/related; type="{media_type}"'}
httpserver.serve_content(content=content, code=200, headers=headers)
study_instance_uid = '1.2.3'
series_instance_uid = '1.2.4'
Expand Down

0 comments on commit d9facae

Please sign in to comment.