craftbeerpi4-pione/venv3/lib/python3.7/site-packages/tests/test_notification_controller.py

17 lines
415 B
Python
Raw Normal View History

2021-03-03 23:49:41 +01:00
import aiohttp
from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
from cbpi.craftbeerpi import CraftBeerPi
class NotificationTestCase(AioHTTPTestCase):
async def get_application(self):
self.cbpi = CraftBeerPi()
await self.cbpi.init_serivces()
return self.cbpi.app
@unittest_run_loop
async def test_actor_switch(self):
self.cbpi.notify("test", "test")