Bump twentemilieu to 0.3.0 (#33622)

* Bump twentemilieu to 0.3.0

* Fix tests
This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-04 14:51:12 +02:00
1 parent debc1f78d4
commit 46fa20411e
4 files changed
+7 -7

No files matched your search

@@ -34,7 +34,7 @@ async def test_show_set_form(hass):
async def test_connection_error(hass, aioclient_mock):
"""Test we show user form on Twente Milieu connection error."""
aioclient_mock.post(
"https://wasteapi.2go-mobile.com/api/FetchAdress", exc=aiohttp.ClientError
"https://twentemilieuapi.ximmio.com/api/FetchAdress", exc=aiohttp.ClientError
)
flow = config_flow.TwenteMilieuFlowHandler()
@@ -49,7 +49,7 @@ async def test_connection_error(hass, aioclient_mock):
async def test_invalid_address(hass, aioclient_mock):
"""Test we show user form on Twente Milieu invalid address error."""
aioclient_mock.post(
"https://wasteapi.2go-mobile.com/api/FetchAdress",
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
json={"dataList": []},
headers={"Content-Type": "application/json"},
)
@@ -70,7 +70,7 @@ async def test_address_already_set_up(hass, aioclient_mock):
)
aioclient_mock.post(
"https://wasteapi.2go-mobile.com/api/FetchAdress",
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
json={"dataList": [{"UniqueId": "12345"}]},
headers={"Content-Type": "application/json"},
)
@@ -86,7 +86,7 @@ async def test_address_already_set_up(hass, aioclient_mock):
async def test_full_flow_implementation(hass, aioclient_mock):
"""Test registering an integration and finishing flow works."""
aioclient_mock.post(
"https://wasteapi.2go-mobile.com/api/FetchAdress",
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
json={"dataList": [{"UniqueId": "12345"}]},
headers={"Content-Type": "application/json"},
)