Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias Assign NameStore Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad body Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Str Expr Call NameLoad NameLoad Expr Call NameLoad Str Dict Str Str Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Str Str Expr Call NameLoad Str NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Str Str Expr Call NameLoad Str NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call NameLoad Str Dict Str Str Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call NameLoad Str Dict Str Str Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Dict Str Str Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A uuid django.conf settings django.core.management call_command django.test TestCase elasticsearch.exceptions ConnectionError corehq.apps.case_search.models CaseSearchConfig corehq.apps.domain.shortcuts create_domain corehq.apps.domain.tests.test_utils delete_all_domains corehq.apps.es CaseES CaseSearchES DomainES FormES UserES GroupES corehq.apps.groups.models Group corehq.apps.groups.tests.test_utils delete_all_groups corehq.apps.users.dbaccessors.all_commcare_users delete_all_users corehq.apps.users.models CommCareUser WebUser corehq.elastic get_es_new corehq.form_processor.tests.utils FormProcessorTestUtils run_with_all_backends corehq.pillows.case CasePillow corehq.pillows.mappings.case_mapping CASE_INDEX corehq.pillows.mappings.case_search_mapping CASE_SEARCH_INDEX corehq.pillows.mappings.domain_mapping DOMAIN_INDEX corehq.pillows.mappings.group_mapping GROUP_INDEX_INFO corehq.pillows.mappings.user_mapping USER_INDEX corehq.pillows.mappings.xform_mapping XFORM_INDEX corehq.util.elastic delete_es_index ensure_index_deleted corehq.util.test_utils trap_extra_setup create_and_save_a_form create_and_save_a_case N/A DOMAIN reindex-test-domain PillowtopReindexerTest N/A TestCase N/A N/A domain DOMAIN setUpClass N/A N/A cls N/A N/A N/A N/A trap_extra_setup ConnectionError N/A N/A N/A CasePillow N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A index N/A CASE_SEARCH_INDEX USER_INDEX CASE_INDEX XFORM_INDEX N/A N/A N/A ensure_index_deleted index N/A classmethod test_domain_reindexer N/A N/A self N/A N/A N/A N/A delete_all_domains N/A N/A ensure_index_deleted DOMAIN_INDEX N/A name reindex-test-domain N/A N/A create_domain name N/A N/A call_command ptop_reindexer_v2 N/A index cleanup noinput domain True True N/A results N/A N/A N/A DomainES run N/A N/A N/A self assertEqual 1 N/A results total N/A domain_doc N/A N/A results hits N/A 0 N/A N/A N/A self assertEqual name N/A domain_doc N/A name N/A N/A N/A self assertEqual Domain N/A domain_doc N/A doc_type N/A N/A delete_es_index DOMAIN_INDEX N/A test_case_reindexer N/A N/A self N/A N/A N/A N/A N/A FormProcessorTestUtils delete_all_cases N/A case N/A _create_and_save_a_case N/A N/A call_command ptop_fast_reindex_cases noinput True bulk True N/A N/A N/A self _assert_case_is_in_es case N/A test_case_reindexer_v2 N/A N/A self N/A N/A N/A N/A N/A FormProcessorTestUtils delete_all_cases N/A case N/A _create_and_save_a_case N/A index_id N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND sql-case case N/A N/A call_command ptop_reindexer_v2 index_id cleanup True noinput True N/A N/A N/A self _assert_case_is_in_es case N/A run_with_all_backends test_case_search_reindexer N/A N/A self N/A N/A N/A es N/A get_es_new N/A N/A N/A FormProcessorTestUtils delete_all_cases N/A case N/A _create_and_save_a_case N/A N/A ensure_index_deleted CASE_SEARCH_INDEX N/A N/A N/A N/A N/A N/A CaseSearchConfig objects all delete N/A N/A call_command ptop_reindexer_v2 case-search N/A N/A N/A N/A es indices refresh CASE_SEARCH_INDEX N/A N/A N/A self _assert_es_empty esquery N/A CaseSearchES N/A N/A N/A N/A CaseSearchConfig objects create domain N/A self domain enabled True N/A N/A N/A self addCleanup N/A N/A N/A N/A CaseSearchConfig objects all delete N/A N/A call_command ptop_reindexer_v2 case-search N/A N/A N/A N/A es indices refresh CASE_SEARCH_INDEX N/A N/A N/A self _assert_case_is_in_es case esquery N/A CaseSearchES N/A run_with_all_backends test_xform_reindexer N/A N/A self N/A N/A N/A N/A N/A FormProcessorTestUtils delete_all_xforms N/A form N/A create_and_save_a_form DOMAIN N/A N/A call_command ptop_fast_reindex_xforms noinput True bulk True N/A N/A N/A self _assert_form_is_in_es form N/A N/A N/A form delete N/A test_xform_reindexer_v2 N/A N/A self N/A N/A N/A N/A N/A FormProcessorTestUtils delete_all_xforms N/A form N/A create_and_save_a_form DOMAIN N/A index_id N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND sql-form form N/A N/A call_command ptop_reindexer_v2 index_id cleanup True noinput True N/A N/A N/A self _assert_form_is_in_es form N/A run_with_all_backends _assert_es_empty N/A N/A self esquery N/A N/A CaseES N/A N/A results N/A N/A esquery run N/A N/A N/A self assertEqual 0 N/A results total N/A _assert_case_is_in_es N/A N/A self case esquery N/A N/A CaseES N/A N/A results N/A N/A esquery run N/A N/A N/A self assertEqual 1 N/A results total N/A case_doc N/A N/A results hits N/A 0 N/A N/A N/A self assertEqual N/A case case_id N/A case_doc N/A _id N/A N/A N/A self assertEqual N/A self domain N/A case_doc N/A domain N/A N/A N/A self assertEqual N/A case name N/A case_doc N/A name N/A N/A N/A self assertEqual CommCareCase N/A case_doc N/A doc_type N/A _assert_form_is_in_es N/A N/A self form N/A N/A N/A results N/A N/A N/A FormES run N/A N/A N/A self assertEqual 1 N/A results total N/A form_doc N/A N/A results hits N/A 0 N/A N/A N/A self assertEqual N/A self domain N/A form_doc N/A domain N/A N/A N/A self assertEqual N/A form xmlns N/A form_doc N/A xmlns N/A N/A N/A self assertEqual XFormInstance N/A form_doc N/A doc_type N/A _assert_index_empty N/A N/A self esquery N/A N/A CaseES N/A N/A results N/A N/A esquery run N/A N/A N/A self assertEqual 0 N/A results total N/A N/A UserReindexerTest N/A TestCase N/A N/A dependent_apps N/A auditcare django_digest pillowtop corehq.apps.domain corehq.apps.users corehq.apps.tzmigration setUp N/A N/A self N/A N/A N/A N/A delete_all_users N/A setUpClass N/A N/A cls N/A N/A N/A N/A create_domain DOMAIN N/A N/A ensure_index_deleted USER_INDEX N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A ensure_index_deleted USER_INDEX N/A classmethod test_user_reindexer_v2 N/A N/A self N/A N/A N/A username reindex-test-username-v2 N/A N/A N/A CommCareUser create DOMAIN username secret N/A N/A call_command ptop_reindexer_v2 N/A index cleanup noinput user True True N/A N/A N/A self _assert_user_in_es username N/A test_web_user_reindexer_v2 N/A N/A self N/A N/A N/A username test-v2@example.com N/A N/A N/A WebUser create DOMAIN username secret N/A N/A call_command ptop_reindexer_v2 N/A index cleanup noinput user True True N/A N/A N/A self _assert_user_in_es username is_webuser True N/A _assert_user_in_es N/A N/A self username is_webuser N/A False N/A N/A results N/A N/A N/A UserES run N/A N/A N/A self assertEqual 1 N/A results total N/A user_doc N/A N/A results hits N/A 0 N/A N/A N/A self assertEqual username N/A user_doc N/A username N/A N/A is_webuser N/A N/A N/A N/A self assertEqual DOMAIN N/A user_doc N/A domain N/A N/A N/A self assertEqual CommCareUser N/A user_doc N/A doc_type N/A N/A N/A N/A self assertEqual WebUser N/A user_doc N/A doc_type N/A N/A GroupReindexerTest N/A TestCase N/A N/A dependent_apps N/A pillowtop corehq.couchapps corehq.apps.groups setUp N/A N/A self N/A N/A N/A N/A delete_all_groups N/A setUpClass N/A N/A cls N/A N/A N/A N/A ensure_index_deleted N/A GROUP_INDEX_INFO index N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A ensure_index_deleted N/A GROUP_INDEX_INFO index N/A classmethod test_group_reindexer N/A N/A self N/A N/A N/A group N/A Group domain DOMAIN name g1 N/A N/A N/A group save N/A N/A call_command ptop_reindexer_v2 N/A index cleanup noinput group True True N/A N/A N/A self _assert_group_in_es group N/A _assert_group_in_es N/A N/A self group N/A N/A N/A results N/A N/A N/A GroupES run N/A N/A N/A self assertEqual 1 N/A results total N/A es_group N/A N/A results hits N/A 0 N/A N/A N/A self assertEqual N/A group _id N/A es_group N/A _id N/A N/A N/A self assertEqual N/A group name N/A es_group N/A name N/A N/A N/A self assertEqual N/A group users N/A es_group N/A users N/A N/A N/A self assertEqual Group N/A es_group N/A doc_type N/A N/A _create_and_save_a_case N/A N/A N/A N/A N/A case_name N/A N/A reindexer-test-case-{} format N/A N/A N/A uuid uuid4 hex N/A case_id N/A N/A N/A uuid uuid4 hex N/A N/A create_and_save_a_case DOMAIN case_id case_name N/A