No more opt-out auth (#18854)

* No more opt-out auth

* Fix var
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-12-02 16:32:53 +01:00
1 parent ae9e3d83d7
commit d1a621601d
42 files changed
+307 -473

No files matched your search

+4 -4
View File
@@ -5,11 +5,11 @@ from homeassistant.bootstrap import async_setup_component
import homeassistant.util.dt as dt_util
async def test_events_http_api(hass, aiohttp_client):
async def test_events_http_api(hass, hass_client):
"""Test the calendar demo view."""
await async_setup_component(hass, 'calendar',
{'calendar': {'platform': 'demo'}})
client = await aiohttp_client(hass.http.app)
client = await hass_client()
response = await client.get(
'/api/calendars/calendar.calendar_2')
assert response.status == 400
@@ -24,11 +24,11 @@ async def test_events_http_api(hass, aiohttp_client):
assert events[0]['title'] == 'Future Event'
async def test_calendars_http_api(hass, aiohttp_client):
async def test_calendars_http_api(hass, hass_client):
"""Test the calendar demo view."""
await async_setup_component(hass, 'calendar',
{'calendar': {'platform': 'demo'}})
client = await aiohttp_client(hass.http.app)
client = await hass_client()
response = await client.get('/api/calendars')
assert response.status == 200
data = await response.json()