def test_process_passed(): try: result = process_lights('passed', {MOCK}) assert result[0]['consumer'] == 'lifx_light' assert result[0]['type'] == 'light' assert result[0]['name'] assert result[0]['status'] == 'passed' except SystemExit: pytest.skip()
def test_process_failed() -> None: try: result = process_lights({MOCK}, 'failed') assert result[0]['consumer'] == 'lifx_light' assert result[0]['type'] == 'light' assert result[0]['name'] assert result[0]['status'] == 'failed' except: pytest.skip()