#NEWLINE# @ run_with_all_backends #NEWLINE# def test_case_search_reindexer( self ) : #NEWLINE# #INDENT# es = get_es_new ( ) #NEWLINE# FormProcessorTestUtils . delete_all_cases ( ) #NEWLINE# case = _create_and_save_a_case ( ) #NEWLINE# ensure_index_deleted ( CASE_SEARCH_INDEX ) #NEWLINE# CaseSearchConfig . objects . all ( ) . delete ( ) #NEWLINE# call_command ( 'ptop_reindexer_v2' , 'case-search' ) #NEWLINE# es . indices . refresh ( CASE_SEARCH_INDEX ) #NEWLINE# self . _assert_es_empty ( esquery = CaseSearchES ( ) ) #NEWLINE# CaseSearchConfig . objects . create ( domain = self . domain , enabled = True ) #NEWLINE# self . addCleanup ( CaseSearchConfig . objects . all ( ) . delete ) #NEWLINE# call_command ( 'ptop_reindexer_v2' , 'case-search' ) #NEWLINE# es . indices . refresh ( CASE_SEARCH_INDEX ) #NEWLINE# self . _assert_case_is_in_es ( case , esquery = CaseSearchES ( ) )