Skip to content

Model Permissions Change (Organization Manager) Test Cases


Tests for checking model change permissions

Attributes

app_namespace: str = None

Application namespace of the model being tested

different_organization_is_manager: object

User whom is organization Manager of different organization than object

url_name_change: str

url name of the model view to be tested

url_change_kwargs: dict = None

View URL kwargs for model being tested

user_is_organization_manager: object

User whom is organization Manager of the object

Functions

test_model_change_different_organization_is_organization_manager_denied()

Ensure permission view cant make change

Attempt to make change as user from different organization whom is an organization Manager.

test_model_change_has_no_permission_is_organization_manager()

Check correct permission for change

Make change as user who is an organization manager and has no permissions assigned. Object to be within same organization the user is a manager of.

About:

This page forms part of our Project Centurion ERP.

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