1
0
Fork 0
mirror of https://github.com/PiBrewing/craftbeerpi4.git synced 2025-03-29 10:48:59 +01:00
craftbeerpi4-pione/tests/test_utils.py
2019-08-05 20:51:20 +02:00

16 lines
402 B
Python

from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
from cbpi.craftbeerpi import CraftBeerPi, load_config
class UtilsTestCase(AioHTTPTestCase):
async def get_application(self):
self.cbpi = CraftBeerPi()
await self.cbpi.init_serivces()
return self.cbpi.app
@unittest_run_loop
async def test_load_file(self):
assert load_config("") is None