Example #1
0
def test_process_passed():
    try:
        result = process_devices('passed', {MOCK})

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

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