Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to aiohttp 3.7.1 #42305

Merged
merged 4 commits into from
Oct 25, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PyJWT==1.7.1
PyNaCl==1.3.0
aiohttp==3.6.2
aiohttp==3.7.1
aiohttp_cors==0.7.0
astral==1.10.1
async_timeout==3.0.1
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-c homeassistant/package_constraints.txt

# Home Assistant Core
aiohttp==3.6.2
aiohttp==3.7.1
astral==1.10.1
async_timeout==3.0.1
attrs==19.3.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
PACKAGES = find_packages(exclude=["tests", "tests.*"])

REQUIRES = [
"aiohttp==3.6.2",
"aiohttp==3.7.1",
"astral==1.10.1",
"async_timeout==3.0.1",
"attrs==19.3.0",
Expand Down
11 changes: 11 additions & 0 deletions tests/components/webhook/test_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async def setup_http(hass):
"""Set up http."""
assert await async_setup_component(hass, "http", {})
assert await async_setup_component(hass, "webhook", {})
await hass.async_block_till_done()


async def test_webhook_json(hass, aiohttp_client):
Expand All @@ -38,10 +39,12 @@ def store_event(event):
}
},
)
await hass.async_block_till_done()

client = await aiohttp_client(hass.http.app)

await client.post("/api/webhook/json_webhook", json={"hello": "world"})
await hass.async_block_till_done()

assert len(events) == 1
assert events[0].data["hello"] == "yo world"
Expand Down Expand Up @@ -71,10 +74,12 @@ def store_event(event):
}
},
)
await hass.async_block_till_done()

client = await aiohttp_client(hass.http.app)

await client.post("/api/webhook/post_webhook", data={"hello": "world"})
await hass.async_block_till_done()

assert len(events) == 1
assert events[0].data["hello"] == "yo world"
Expand Down Expand Up @@ -104,10 +109,12 @@ def store_event(event):
}
},
)
await hass.async_block_till_done()

client = await aiohttp_client(hass.http.app)

await client.post("/api/webhook/query_webhook?hello=world")
await hass.async_block_till_done()

assert len(events) == 1
assert events[0].data["hello"] == "yo world"
Expand Down Expand Up @@ -137,10 +144,12 @@ def store_event(event):
}
},
)
await hass.async_block_till_done()

client = await aiohttp_client(hass.http.app)

await client.post("/api/webhook/post_webhook", data={"hello": "world"})
await hass.async_block_till_done()

assert len(events) == 1
assert events[0].data["hello"] == "yo world"
Expand All @@ -163,8 +172,10 @@ def store_event(event):
"reload",
blocking=True,
)
await hass.async_block_till_done()

await client.post("/api/webhook/post_webhook", data={"hello": "world"})
await hass.async_block_till_done()

assert len(events) == 2
assert events[1].data["hello"] == "yo2 world"