@pytest.fixture
def test_params(request):
 env = request.node.get_marker('test_params')
 kwargs = (env.kwargs if env else {})
 result = {'shared_result': None}
 result.update(kwargs)
 if (result['shared_result'] and (not isinstance(result['shared_result'], string_types))):
  raise pytest.Exception('You can only provide a string type of value for "shared_result" ')
 return result

@ pytest . fixture def test_params ( request ) : env = request . node . get_marker ( 'test_params' ) kwargs = ( env . kwargs if env else { } ) result = { 'shared_result' : None } result . update ( kwargs ) if ( result [ 'shared_result' ] and ( not isinstance ( result [ 'shared_result' ] , string_types ) ) ) : raise pytest . Exception ( 'You can only provide a string type of value for "shared_result" ' ) return result
test parameters that is specified by pytest .