Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Feb 10, 2025
1 parent 2839bc4 commit ab7b7fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
async-timeout==5.0.1
# via valkey
blockbuster==1.5.15
blockbuster==1.5.18
# via -r requirements/lint.in
cffi==1.17.1
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ annotated-types==0.7.0
# via pydantic
async-timeout==5.0.1 ; python_version < "3.11"
# via -r requirements/runtime-deps.in
blockbuster==1.5.15
blockbuster==1.5.18
# via -r requirements/test.in
brotli==1.1.0 ; platform_python_implementation == "CPython"
# via -r requirements/runtime-deps.in
Expand Down
2 changes: 1 addition & 1 deletion tests/test_web_sendfile_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ async def test_static_file_huge(
file_st = file_path.stat()

app = web.Application()
app.router.add_static("/static", str(tmp_path))
await asyncio.to_thread(app.router.add_static, "/static", str(tmp_path))
client = await aiohttp_client(app)

resp = await client.get("/static/" + file_path.name)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_web_urldispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ async def test_access_root_of_static_handler_xss(
app = web.Application()

# Register global static route:
app.router.add_static(prefix, str(tmp_path), show_index=show_index)
await asyncio.to_thread(
app.router.add_static, prefix, str(tmp_path), show_index=show_index
)
client = await aiohttp_client(app)

# Request the root of the static directory.
Expand Down

0 comments on commit ab7b7fb

Please sign in to comment.