activity icon indicating copy to clipboard operation
activity copied to clipboard

Unit test for activity/views.py: admin_form_library_settings function

Open ninetteadhikari opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

  • Write unit test for the function admin_form_library_settings for the view in activity section activity/views.py
  • It should include tests for url as 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_settings function should have all their lines covered in the coverage report for both views and urls

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?

ninetteadhikari avatar May 04 '20 16:05 ninetteadhikari