Skip to content

Instantly share code, notes, and snippets.

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― test_request_sync_service[pyloop] ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
aioclient_mock = <tests.test_util.aiohttp.AiohttpClientMocker object at 0x7fb4e0ec4b38>, hass = <homeassistant.core.HomeAssistant object at 0x7fb4e8746a20>
@asyncio.coroutine
def test_request_sync_service(aioclient_mock, hass):
"""Test that it posts to the request_sync url."""
aioclient_mock.post(
ga.const.REQUEST_SYNC_BASE_URL, status=200)
@r4nd0mbr1ck
r4nd0mbr1ck / test_init.py
Last active November 4, 2017 09:59
new test for google assistant
"""The tests for google-assistant init."""
import asyncio
from unittest import mock
from homeassistant.setup import async_setup_component
from homeassistant.components import google_assistant as ga
GA_API_KEY = "Agdgjsj399sdfkosd932ksd"
GA_AGENT_USER_ID = "testid"