Model Permissions Delete Test Cases
Tests for checking model delete permissions
Attributes
app_namespace: str = None
url_name_delete: str
url_delete_kwargs: dict = None
url_delete_response: str
delete_data: dict = None
Functions
test_model_delete_user_anon_denied()
Check correct permission for delete
Attempt to delete item as anon user
test_model_delete_no_permission_denied()
Check correct permission for delete
Attempt to delete as user with no permissons
test_model_delete_different_organization_denied()
Check correct permission for delete
Attempt to delete as user from different organization
test_model_delete_permission_view_denied()
Check correct permission for delete
Attempt to delete as user with veiw permission only
test_model_delete_permission_add_denied()
Check correct permission for delete
Attempt to delete as user with add permission only
test_model_delete_permission_change_denied()
Check correct permission for delete
Attempt to delete as user with change permission only
test_model_delete_has_permission()
Check correct permission for delete
Delete item as user with delete permission
About:
This page forms part of our Project Centurion ERP.
Page Metadata
Version: ToDo: place files short git commit hereDate Created: 2024-06-15
Date Edited: 2024-07-09
Contribution:
Would You like to contribute to our Centurion ERP project? You can assist in the following ways:
- Edit This Page If there is a mistake or a way you can improve it.
- Add a Page to the Manual if you would like to add an item to our manual
- Raise an Issue if there is something about this page you would like to improve, and git is unfamiliar to you.
ToDo: Add the page list of contributors