Skip to content

Commit 3e0435a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e69d5c4 commit 3e0435a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

integration_tests/base_routes.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,10 +1388,12 @@ def file_generator():
13881388
return StreamingResponse(
13891389
content=file_generator(),
13901390
media_type="application/octet-stream",
1391-
headers=Headers({
1392-
"Content-Type": "application/octet-stream",
1393-
"Content-Disposition": "attachment; filename=index.html",
1394-
}),
1391+
headers=Headers(
1392+
{
1393+
"Content-Type": "application/octet-stream",
1394+
"Content-Disposition": "attachment; filename=index.html",
1395+
}
1396+
),
13951397
)
13961398

13971399

integration_tests/test_binary_streaming.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ def test_stream_bytes_file(session):
5555
streamed_data += chunk
5656

5757
# Read the original file to compare
58-
test_file = os.path.join(
59-
os.path.dirname(os.path.abspath(__file__)), "build", "index.html"
60-
)
58+
test_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "build", "index.html")
6159
with open(test_file, "rb") as f:
6260
original_data = f.read()
6361

0 commit comments

Comments
 (0)