API Model Permission add Test Cases
Source code in app/api/tests/abstract/api_permissions.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
Attributes
model: object
Item Model to test
app_namespace: str = None
URL namespace
url_list: str
URL view name of the item list page
url_kwargs: dict = None
URL view kwargs for the item list page
add_data: dict = None
Functions
test_add_user_anon_denied()
Check correct permission for add
Attempt to add as anon user
Source code in app/api/tests/abstract/api_permissions.py
test_add_no_permission_denied()
Check correct permission for add
Attempt to add as user with no permissions
Source code in app/api/tests/abstract/api_permissions.py
test_add_different_organization_denied()
Check correct permission for add
attempt to add as user from different organization
Source code in app/api/tests/abstract/api_permissions.py
test_add_permission_view_denied()
Check correct permission for add
Attempt to add a user with view permission
Source code in app/api/tests/abstract/api_permissions.py
test_add_has_permission()
Check correct permission for add
Attempt to add as user with permission
Source code in app/api/tests/abstract/api_permissions.py
About:
This page forms part of our Project Centurion ERP.
Page Metadata
Version: ToDo: place files short git commit hereDate Created: 2024-06-16
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