Skip to content

Model Permissions Change Test Cases


Tests for checking model change permissions

Attributes

app_namespace: str = None

url_name_change: str

url_change_kwargs: dict = None

change_data: dict = None

Functions

test_model_change_user_anon_denied()

Check correct permission for change

Attempt to change as anon

test_model_change_no_permission_denied()

Ensure permission view cant make change

Attempt to make change as user without permissions

test_model_change_different_organization_denied()

Ensure permission view cant make change

Attempt to make change as user from different organization

test_model_change_permission_view_denied()

Ensure permission view cant make change

Attempt to make change as user with view permission

test_model_change_permission_add_denied()

Ensure permission view cant make change

Attempt to make change as user with add permission

test_model_change_has_permission()

Check correct permission for change

Make change with user who has change permission

About:

This page forms part of our Project Centurion ERP.

Page Metadata
Version: ToDo: place files short git commit here
Date 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:

 

ToDo: Add the page list of contributors