craftbeerpi4-pione/tests/test_utils.py

17 lines
402 B
Python
Raw Normal View History

2019-01-02 21:20:44 +01:00
from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
2019-01-05 20:43:48 +01:00
from cbpi.craftbeerpi import CraftBeerPi, load_config
2019-01-02 21:20:44 +01:00
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):
2019-08-05 20:51:20 +02:00
assert load_config("") is None