Skip to content

Commit d2ec793

Browse files
pre-commit-ci[bot]sansyrox
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9a78fe0 commit d2ec793

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

integration_tests/base_routes.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,10 +1681,12 @@ def file_generator():
16811681
return StreamingResponse(
16821682
content=file_generator(),
16831683
media_type="application/octet-stream",
1684-
headers=Headers({
1685-
"Content-Type": "application/octet-stream",
1686-
"Content-Disposition": "attachment; filename=index.html",
1687-
}),
1684+
headers=Headers(
1685+
{
1686+
"Content-Type": "application/octet-stream",
1687+
"Content-Disposition": "attachment; filename=index.html",
1688+
}
1689+
),
16881690
)
16891691

16901692

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)