#NEWLINE# @ pytest . fixture #NEWLINE# def index( ) : #NEWLINE# #INDENT# index = search . Index ( name = 'simple-index' , namespace = '' ) #NEWLINE# doc = search . Document ( doc_id = 'test_id' , fields = [ search . TextField ( name = 'body' , value = 'hello world' ) ] ) #NEWLINE# index . put ( doc ) #NEWLINE# return index