mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-26 23:41:47 +01:00
652fbd74be
Tests that can not work because of missing endpoints in the controllers were removed. Also tests that have no clear intent and were failing were deleted.
15 lines
432 B
Python
15 lines
432 B
Python
from aiohttp.test_utils import unittest_run_loop
|
|
from tests.cbpi_config_fixture import CraftBeerPiTestCase
|
|
|
|
|
|
class IndexTestCase(CraftBeerPiTestCase):
|
|
|
|
@unittest_run_loop
|
|
async def test_endpoints(self):
|
|
# Test Index Page
|
|
resp = await self.client.post(path="/system/restart")
|
|
assert resp.status == 200
|
|
|
|
resp = await self.client.post(path="/system/shutdown")
|
|
assert resp.status == 200
|
|
|