Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,14 @@ def test_agent_is_used_aiohttp(httpserver: HTTPServer):
async def main():
async with aiohttp.ClientSession() as session:
async with session.get(httpserver.url_for("/")) as response:
html = await response.text()
return response.status

httpserver.expect_request(
"/", headers={"User-Agent": AGENT_TEST}
).respond_with_data("")
asyncio.run(main())
assert (
asyncio.run(main()) == 200
), "aiohttp User-Agent should match the expected header so the request is served"


def test_api_key_in_config():
Expand Down
Loading