Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Num NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SetComp Call AttributeLoad AttributeLoad NameLoad attr attr Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Set Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list
N/A django.test TestCase mock patch corehq toggles corehq.apps.app_manager.const APP_V2 corehq.apps.app_manager.fixtures.mobile_ucr report_fixture_generator corehq.apps.app_manager.models Application ReportModule ReportAppConfig corehq.apps.domain.models Domain corehq.apps.domain.shortcuts create_domain corehq.apps.userreports.tests get_sample_report_config corehq.apps.users.models CommCareUser OtaRestoreUrlTests N/A TestCase N/A N/A domain test_domain setUpClass N/A N/A cls N/A N/A N/A N/A cls app N/A N/A Application new_app N/A cls domain Test App application_version APP_V2 N/A N/A N/A N/A cls app save N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A cls app delete N/A classmethod test_app_aware_url N/A N/A self N/A N/A N/A N/A N/A N/A toggles APP_AWARE_SYNC set N/A self domain True N/A toggles NAMESPACE_DOMAIN N/A N/A N/A self assertIn N/A N/A self app _id N/A N/A self app ota_restore_url N/A test_default_url N/A N/A self N/A N/A N/A N/A N/A N/A toggles APP_AWARE_SYNC set N/A self domain False N/A toggles NAMESPACE_DOMAIN N/A N/A N/A self assertNotIn N/A N/A self app _id N/A N/A self app ota_restore_url N/A N/A AppAwareSyncTests N/A TestCase N/A N/A domain test_domain N/A rows N/A N/A owner count is_starred bob 3 True setUpClass N/A N/A cls N/A N/A N/A N/A create_domain N/A cls domain N/A N/A N/A N/A toggles MOBILE_UCR set N/A cls domain True N/A toggles NAMESPACE_DOMAIN N/A N/A cls user N/A N/A CommCareUser create N/A cls domain john_doe s3cr3t N/A N/A cls app1 N/A N/A Application new_app N/A cls domain Test App 1 application_version APP_V2 N/A N/A cls report_config1 N/A get_sample_report_config N/A N/A N/A N/A cls report_config1 save N/A report_app_config N/A report_id uuid N/A N/A cls report_config1 get_id 123456 N/A module N/A N/A N/A cls app1 add_module N/A N/A ReportModule new_module Reports None N/A N/A module report_configs N/A N/A N/A ReportAppConfig wrap report_app_config N/A N/A N/A N/A cls app1 save N/A N/A cls app2 N/A N/A Application new_app N/A cls domain Test App 2 application_version APP_V2 N/A N/A cls report_config2 N/A get_sample_report_config N/A N/A N/A N/A cls report_config2 save N/A report_app_config N/A report_id uuid N/A N/A cls report_config2 get_id abcdef N/A module N/A N/A N/A cls app2 add_module N/A N/A ReportModule new_module Reports None N/A N/A module report_configs N/A N/A N/A ReportAppConfig wrap report_app_config N/A N/A N/A N/A cls app2 save N/A N/A cls app3 N/A N/A Application new_app N/A cls domain Test App 3 application_version APP_V2 N/A N/A N/A N/A cls app3 save N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A toggles MOBILE_UCR set N/A cls domain False N/A toggles NAMESPACE_DOMAIN N/A N/A N/A N/A cls app1 delete N/A N/A N/A N/A cls report_config1 delete N/A N/A N/A N/A cls app2 delete N/A N/A N/A N/A cls report_config2 delete N/A N/A N/A N/A cls user delete N/A domain N/A N/A Domain get_by_name N/A cls domain N/A N/A N/A domain delete N/A classmethod test_report_fixtures_provider_without_app N/A N/A self N/A N/A N/A 
        ReportFixturesProvider should iterate all apps if app not given
         corehq.apps.userreports.reports.data_source ConfigurableReportDataSource N/A N/A N/A patch object ConfigurableReportDataSource get_data get_data_mock N/A N/A N/A get_data_mock return_value N/A self rows N/A fixtures N/A report_fixture_generator N/A self user 2.0 None N/A reports N/A N/A N/A fixtures N/A 0 findall .//report N/A N/A N/A self assertEqual N/A len reports 2 N/A report_ids N/A N/A N/A N/A r attrib get id N/A r reports N/A N/A N/A self assertEqual report_ids N/A 123456 abcdef N/A test_report_fixtures_provider_with_app N/A N/A self N/A N/A N/A 
        ReportFixturesProvider should not iterate all apps if app given
         corehq.apps.userreports.reports.data_source ConfigurableReportDataSource N/A N/A N/A patch object ConfigurableReportDataSource get_data get_data_mock N/A N/A N/A get_data_mock return_value N/A self rows N/A fixtures N/A report_fixture_generator N/A self user 2.0 None app N/A self app1 N/A reports N/A N/A N/A fixtures N/A 0 findall .//report N/A N/A N/A self assertEqual N/A len reports 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A reports N/A 0 attrib get id 123456 N/A test_report_fixtures_provider_with_app_that_doesnt_have_reports N/A N/A self N/A N/A corehq.apps.userreports.reports.data_source ConfigurableReportDataSource N/A N/A N/A patch object ConfigurableReportDataSource get_data get_data_mock N/A N/A N/A get_data_mock return_value N/A self rows N/A fixtures N/A report_fixture_generator N/A self user 2.0 None app N/A self app3 N/A N/A N/A self assertEqual N/A len fixtures 0 N/A N/A