Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad Call NameLoad keyword Str Call NameLoad keyword Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Call NameLoad keyword Str Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad Str decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword Call NameLoad keyword Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num keyword Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Num NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword Call NameLoad keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad keyword ListLoad Call NameLoad keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad Call NameLoad keyword Str keyword Str keyword Dict AttributeLoad NameLoad attr Num keyword Dict AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpAdd Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index NameLoad attr Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpAdd Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpAdd Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Call NameLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpAdd Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr BinOpAdd Num Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword Call NameLoad keyword Str
N/A N/A mock collections namedtuple django.test TestCase SimpleTestCase corehq.apps.export.models ExportItem MultipleChoiceItem FormExportDataSchema ExportGroupSchema FormExportInstance TableConfiguration SplitExportColumn PathNode MAIN_TABLE FormExportInstanceDefaults corehq.apps.export.system_properties MAIN_FORM_TABLE_PROPERTIES TOP_MAIN_FORM_TABLE_PROPERTIES N/A MockRequest N/A namedtuple MockRequest domain TestExportInstanceGeneration N/A SimpleTestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls app_id 1234 N/A N/A cls schema N/A FormExportDataSchema group_schemas N/A N/A ExportGroupSchema path MAIN_TABLE items N/A N/A MultipleChoiceItem path N/A N/A PathNode name data N/A PathNode name question1 label Question 1 last_occurrences N/A N/A cls app_id 3 last_occurrences N/A N/A cls app_id 3 N/A ExportGroupSchema path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True N/A PathNode name q2 label Question 2 last_occurrences N/A N/A cls app_id 2 last_occurrences N/A N/A cls app_id 2 N/A classmethod test_generate_instance_from_schema N/A N/A self _ __ N/A N/A N/A Only questions that are in the main table and of the same version should be shown N/A build_ids_and_versions N/A N/A self app_id 3 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A N/A N/A self assertEqual N/A len N/A instance tables 2 N/A N/A index split_column N/A N/A N/A N/A instance tables N/A 0 get_column N/A N/A PathNode name data N/A PathNode name question1 MultipleChoiceItem None N/A N/A N/A self assertTrue N/A isinstance split_column SplitExportColumn N/A selected N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A shown N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A selected_system_props N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x selected N/A N/A N/A self assertEqual N/A len selected N/A 1 selected_system_props N/A N/A N/A self assertEqual N/A len shown N/A 1 selected_system_props N/A test_generate_instance_from_schema_deleted N/A N/A self _ __ N/A N/A N/A Given a higher app_version, all the old questions should not be shown or selected N/A build_ids_and_versions N/A N/A self app_id 4 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A N/A N/A self assertEqual N/A len N/A instance tables 2 N/A selected N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A shown N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A selected_system_props N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x selected N/A N/A N/A self assertEqual N/A len selected N/A 0 selected_system_props N/A N/A N/A self assertEqual N/A len shown N/A 0 selected_system_props N/A test_default_table_names N/A N/A self _ __ N/A N/A N/A N/A N/A self assertEqual N/A N/A FormExportInstanceDefaults get_default_table_name MAIN_TABLE Forms N/A N/A N/A self assertEqual N/A N/A FormExportInstanceDefaults get_default_table_name N/A N/A PathNode name form N/A PathNode name group1 N/A PathNode name awesome_repeat is_repeat True Repeat: awesome_repeat N/A N/A N/A N/A mock patch corehq.apps.export.models.new.FormExportInstanceDefaults.get_default_instance_name return_value dummy-name N/A N/A mock patch corehq.apps.export.models.new.get_request return_value N/A MockRequest domain my-domain TestExportInstanceGenerationMultipleApps N/A SimpleTestCase N/A N/A Test Instance generation when the schema is made from multiple apps setUpClass N/A N/A cls N/A N/A N/A N/A cls app_id 1234 N/A N/A cls second_app_id 5678 N/A N/A cls schema N/A FormExportDataSchema group_schemas N/A N/A ExportGroupSchema path MAIN_TABLE items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name question1 label Question 1 last_occurrences N/A N/A cls app_id N/A cls second_app_id 2 4 last_occurrences N/A N/A cls app_id N/A cls second_app_id 2 4 N/A ExportGroupSchema path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True N/A PathNode name q2 label Question 2 last_occurrences N/A N/A cls app_id 3 last_occurrences N/A N/A cls app_id 3 N/A classmethod test_ensure_that_column_is_not_deleted N/A N/A self _ __ N/A N/A N/A This test ensures that as long as ONE app in last_occurrences is the most recent version then the
        column is still marked as is_deleted=False
         N/A build_ids_and_versions N/A N/A self app_id N/A self second_app_id 3 4 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A selected N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A is_advanced N/A filter N/A N/A N/A column N/A N/A column is_advanced N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A selected_system_props N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x selected N/A advanced_system_props N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x is_advanced N/A N/A N/A self assertEqual N/A len selected N/A 1 selected_system_props N/A N/A N/A self assertEqual N/A len is_advanced N/A 0 advanced_system_props N/A test_ensure_that_column_is_deleted N/A N/A self _ __ N/A N/A N/A If both apps are out of date then, the question is indeed deleted N/A build_ids_and_versions N/A N/A self app_id N/A self second_app_id 3 5 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A selected N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A shown N/A filter N/A N/A N/A column N/A N/A column selected N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A N/A instance tables N/A 1 columns N/A selected_system_props N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x selected N/A N/A N/A self assertEqual N/A len selected N/A 0 selected_system_props N/A N/A N/A self assertEqual N/A len shown N/A 0 selected_system_props N/A N/A N/A N/A mock patch corehq.apps.export.models.new.FormExportInstanceDefaults.get_default_instance_name return_value dummy-name N/A N/A mock patch corehq.apps.export.models.new.get_request return_value N/A MockRequest domain my-domain TestExportInstance N/A SimpleTestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls schema N/A FormExportInstance tables N/A N/A TableConfiguration path MAIN_TABLE N/A TableConfiguration path N/A N/A PathNode name data is_repeat False N/A PathNode name repeat is_repeat True N/A classmethod test_get_table N/A N/A self N/A N/A N/A table N/A N/A N/A self schema get_table MAIN_TABLE N/A N/A N/A self assertEqual N/A table path MAIN_TABLE N/A table N/A N/A N/A self schema get_table N/A N/A PathNode name data is_repeat False N/A PathNode name repeat is_repeat True N/A N/A N/A self assertEqual N/A table path N/A N/A PathNode name data is_repeat False N/A PathNode name repeat is_repeat True N/A table N/A N/A N/A self schema get_table N/A N/A PathNode name data is_repeat False N/A PathNode name DoesNotExist is_repeat False N/A N/A N/A self assertIsNone table N/A N/A TestExportInstanceFromSavedInstance N/A TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls app_id 1234 N/A N/A cls schema N/A FormExportDataSchema group_schemas N/A N/A ExportGroupSchema path MAIN_TABLE items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name question1 label Question 1 last_occurrences N/A N/A cls app_id 3 last_occurrences N/A N/A cls app_id 3 N/A N/A cls new_schema N/A FormExportDataSchema group_schemas N/A N/A ExportGroupSchema path MAIN_TABLE items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name question1 label Question 1 last_occurrences N/A N/A cls app_id 3 N/A ExportItem path N/A N/A PathNode name data N/A PathNode name question3 label Question 3 last_occurrences N/A N/A cls app_id 3 last_occurrences N/A N/A cls app_id 3 N/A ExportGroupSchema path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True items N/A N/A ExportItem path N/A N/A PathNode name data N/A PathNode name repeat is_repeat True N/A PathNode name q2 label Question 2 last_occurrences N/A N/A cls app_id 3 last_occurrences N/A N/A cls app_id 3 N/A classmethod test_export_instance_from_saved N/A N/A self _ N/A N/A N/A This test ensures that when we build from a saved export instance that the selection that a user
        makes is still there N/A first_non_system_property N/A len TOP_MAIN_FORM_TABLE_PROPERTIES N/A build_ids_and_versions N/A N/A self app_id 3 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A N/A N/A instance save N/A N/A N/A self assertEqual N/A len N/A instance tables 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A instance tables N/A 0 columns N/A 1 N/A len MAIN_FORM_TABLE_PROPERTIES N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A instance tables N/A 0 columns N/A first_non_system_property selected N/A N/A N/A N/A N/A N/A instance tables N/A 0 columns N/A first_non_system_property selected False N/A N/A N/A instance save N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A instance tables N/A 0 columns N/A first_non_system_property selected N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self new_schema saved_export instance N/A N/A N/A self assertEqual N/A len N/A instance tables 2 N/A N/A N/A self assertEqual N/A len N/A N/A N/A instance tables N/A 0 columns N/A 2 N/A len MAIN_FORM_TABLE_PROPERTIES N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A instance tables N/A 0 columns N/A first_non_system_property selected N/A test_export_instance_deleted_columns_updated N/A N/A self _ N/A N/A N/A This test ensures that when building from a saved export that the new instance correctly labels the
        old columns as advanced
         N/A build_ids_and_versions N/A N/A self app_id 3 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self schema N/A N/A N/A instance save N/A N/A N/A self assertEqual N/A len N/A instance tables 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A instance tables N/A 0 columns N/A 1 N/A len MAIN_FORM_TABLE_PROPERTIES N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A instance tables N/A 0 columns N/A N/A len TOP_MAIN_FORM_TABLE_PROPERTIES selected N/A build_ids_and_versions N/A N/A self app_id 4 N/A N/A N/A mock patch corehq.apps.export.models.new.get_latest_built_app_ids_and_versions return_value build_ids_and_versions N/A N/A instance N/A N/A FormExportInstance generate_instance_from_schema N/A self new_schema saved_export instance N/A N/A N/A self assertEqual N/A len N/A instance tables 2 N/A N/A N/A self assertEqual N/A len N/A N/A N/A instance tables N/A 0 columns N/A 2 N/A len MAIN_FORM_TABLE_PROPERTIES N/A N/A N/A self assertEqual N/A len N/A filter N/A N/A N/A c N/A N/A c is_advanced N/A N/A N/A instance tables N/A 0 columns N/A 2 N/A len N/A x N/A x MAIN_FORM_TABLE_PROPERTIES N/A x is_advanced N/A N/A N/A N/A mock patch corehq.apps.export.models.new.get_request return_value N/A MockRequest domain my-domain