Esempio n. 1
0
def test_process_passed():
    try:
        result = process_devices('passed', {MOCK})

        assert result[0]['consumer'] == 'razer_chroma'
        assert result[0]['type'] == 'device'
        assert result[0]['name']
        assert result[0]['status'] == 'passed'
    except SystemExit:
        pytest.skip()
Esempio n. 2
0
def test_process_failed() -> None:
    try:
        result = process_devices({MOCK}, 'failed')

        assert result[0]['consumer'] == 'razer_chroma'
        assert result[0]['type'] == 'device'
        assert result[0]['name']
        assert result[0]['status'] == 'failed'
    except:
        pytest.skip()