onadata.apps.viewer.tests package¶
Submodules¶
onadata.apps.viewer.tests.export_helpers module¶
- onadata.apps.viewer.tests.export_helpers.viewer_fixture_path(*args)¶
onadata.apps.viewer.tests.surveyor_registration module¶
onadata.apps.viewer.tests.test_attachment_url module¶
onadata.apps.viewer.tests.test_charts_view module¶
onadata.apps.viewer.tests.test_data_view module¶
- class onadata.apps.viewer.tests.test_data_view.TestDataView(methodName='runTest')¶
Bases:
TestBase
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_allow_if_user_given_permission()¶
- test_data_view()¶
- test_data_view_with_username_and_id_string_in_uppercase()¶
- test_disallow_if_user_permission_revoked()¶
- test_restrict_for_anon()¶
- test_restrict_for_not_owner()¶
onadata.apps.viewer.tests.test_export_builder module¶
onadata.apps.viewer.tests.test_export_list module¶
Test export list view.
- class onadata.apps.viewer.tests.test_export_list.TestDataExportURL(methodName='runTest')¶
Bases:
TestBase
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_csv_export_url()¶
- test_csv_export_url_without_records()¶
- test_csv_zip_export_url()¶
- test_sav_zip_export_long_variable_length()¶
- test_sav_zip_export_url()¶
- test_xlsx_export_url()¶
- class onadata.apps.viewer.tests.test_export_list.TestExportList(methodName='runTest')¶
Bases:
TestBase
Test export list view.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_csv_export_list()¶
- test_csv_zip_export_list()¶
- test_external_export_list()¶
- test_external_export_list_no_template()¶
- test_kml_export_list()¶
- test_sav_zip_export_list()¶
- test_unauthorised_users_cannot_export_form_data()¶
- test_unsupported_type_export()¶
- test_xls_export_not_supported()¶
- test_xlsx_export_list()¶
- test_zip_export_list()¶
onadata.apps.viewer.tests.test_exports module¶
onadata.apps.viewer.tests.test_instance_view module¶
- class onadata.apps.viewer.tests.test_instance_view.TestInstanceView(methodName='runTest')¶
Bases:
TestBase
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_allow_if_user_given_permission()¶
- test_disallow_if_user_permission_revoked()¶
- test_instance_view()¶
- test_restrict_for_anon()¶
- test_restrict_for_not_owner()¶
onadata.apps.viewer.tests.test_kml_export module¶
onadata.apps.viewer.tests.test_map_view module¶
onadata.apps.viewer.tests.test_parsed_instance module¶
- class onadata.apps.viewer.tests.test_parsed_instance.TestParsedInstance(methodName='runTest')¶
Bases:
TestBase
- test_get_where_clause_with_integer()¶
- test_get_where_clause_with_json_query()¶
- test_get_where_clause_with_string_query()¶
- test_parse_sort_fields_function()¶
Test that the _parse_sort_fields function works as intended
- test_parse_where_clause_simple_query()¶
- test_parse_where_with_date_value()¶
- test_parse_where_with_null_value()¶
- test_retrieve_records_based_on_form_verion()¶
- test_retrieve_records_using_list_of_queries()¶