#NEWLINE# def test_complex_searchable_list_missing_children( ) : #NEWLINE# #INDENT# ( app , db , admin ) = setup ( ) #NEWLINE# ( Model1 , Model2 ) = create_models ( db ) #NEWLINE# view = CustomModelView ( Model1 , db . session , column_searchable_list = [ 'test1' , 'model2.string_field' ] ) #NEWLINE# admin . add_view ( view ) #NEWLINE# db . session . add ( Model1 ( 'magic string' ) ) #NEWLINE# db . session . commit ( ) #NEWLINE# client = app . test_client ( ) #NEWLINE# rv = client . get ( '/admin/model1/?search=magic' ) #NEWLINE# data = rv . data . decode ( 'utf-8' ) #NEWLINE# ok_ ( ( 'magic string' in client ) )