async def test_service_restart(event_loop): s = Supervisor(loop=event_loop) s.application = test_app await s.service_start(service_id=2) res = await s.service_restart(service_id=2) await s.stop() assert res
async def test_service_status(event_loop): s = Supervisor(loop=event_loop) s.application = test_app res = await s.service_status(service_id=1) assert res == 'starting' await s.stop()
async def test_service_pull_(event_loop): s = Supervisor(loop=event_loop) s.application = test_app res = await s.service_pull_(service_id=1) assert res await s.stop()
async def test_device_register(event_loop): s = Supervisor(loop=event_loop) s.application = test_app res = await s.device_register() assert res await s.stop()