onadata.apps.viewer.models.tests package

Submodules

onadata.apps.viewer.models.tests.test_data_dictionary module

Tests for onadata.apps.viewer.models.data_dictionary

class onadata.apps.viewer.models.tests.test_data_dictionary.DataDictionaryTestCase(methodName='runTest')

Bases: TestBase

Tests for model DataDictionary

setUp()

Hook method for setting up the test fixture before exercising it.

test_cache_invalidated()

Various caches are invalidated when form is created/replaced

test_create_follow_up_form()

Follow up form created successfully

test_create_registration_form()

Registration form created successfully

test_follow_up_form_list_not_found()

Entity list not found when publishing followup form

test_followup_form_remove_dataset()

FollowUpForm is deactivated if entity dataset reference removed

test_reactivate_followup_form()

FollowUpForm is re-activated if previously activated

If entity dataset is referenced again, deactivate FollowUpForm is re-activated

test_registration_form_reactivated()

Existing RegistrationForm if disabled is activated

test_replace_form_entities_list_name()

Replacing entities list_name works

test_replace_form_entities_save_to()

Replacing entity properties works

test_replace_form_remove_entities()

Removing entities definition disables registration form

Module contents