onadata.apps.api.tests.management.commands package¶
Submodules¶
onadata.apps.api.tests.management.commands.test_create_user_profiles module¶
Test create user profile management command.
- class onadata.apps.api.tests.management.commands.test_create_user_profiles.CreateUserProfilesTest(methodName='runTest')¶
Bases:
TestBase
Test create user profile management command.
- test_create_user_profiles()¶
Test that create_user_profiles management command successfully creates a user profile for users missing profiles.
onadata.apps.api.tests.management.commands.test_delete_users module¶
Test delete user management command.
- class onadata.apps.api.tests.management.commands.test_delete_users.DeleteUserTest(methodName='runTest')¶
Bases:
TestBase
Test delete user management command.
- test_delete_users_no_input(mock_input)¶
Test that when user_input is not provided, the user account stats are provided for that user account before deletion
- test_delete_users_with_input()¶
Test that a user account is deleted automatically when the user_input field is provided as true
onadata.apps.api.tests.management.commands.test_increase_odk_token_lifetime module¶
Test increase_odk_token_lifetime command