activity
activity copied to clipboard
Unit test for activity/views.py: admin_form_library_settings function
Is your feature request related to a problem? Please describe.
- Write unit test for the function
admin_form_library_settingsfor the view in activity sectionactivity/views.py - It should include tests for
urlas well
path('accounts/admin/form_library_settings', views.admin_form_library_settings,
name="admin_form_library_settings"),
For Django REST Framework views, please use the REST testing framework which extends Django's existing test framework, and improves support for making API requests.
Acceptance Criteria
- All tests should run successfully.
- The
admin_form_library_settingsfunction should have all their lines covered in the coverage report for bothviewsandurls
Additional Information
All the tests should be located in the tests folder activity/tests in the file named test_views.py. If the file does not exist please create one.
Things to consider
- Is it better to convert this to class instead of keeping it as function?