#NEWLINE# @ pytest . fixture ( scope = 'module' ) #NEWLINE# def expected_responses( request ) : #NEWLINE# #INDENT# '\n    Parse the responses.yml file to get a responses dictionary\n    ' #NEWLINE# device_under_test = request . config . getoption ( 'test_device' ) #NEWLINE# responses = parse_yaml ( ( PWD + '/etc/responses.yml' ) ) #NEWLINE# return responses [ device_under_test ]