Model Permissions Change Test Cases
Source code in app/api/tests/abstract/api_permissions.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 |
|
Attributes
model: object
Item Model to test
app_namespace: str = None
URL namespace
url_name: str
URL name of the view to test
url_view_kwargs: dict = None
URL kwargs of the item page
change_data: dict = None
Functions
test_change_user_anon_denied()
Check correct permission for change
Attempt to change as anon
Source code in app/api/tests/abstract/api_permissions.py
test_change_no_permission_denied()
Ensure permission view cant make change
Attempt to make change as user without permissions
Source code in app/api/tests/abstract/api_permissions.py
test_change_different_organization_denied()
Ensure permission view cant make change
Attempt to make change as user from different organization
Source code in app/api/tests/abstract/api_permissions.py
test_change_permission_view_denied()
Ensure permission view cant make change
Attempt to make change as user with view permission
Source code in app/api/tests/abstract/api_permissions.py
test_change_permission_add_denied()
Ensure permission view cant make change
Attempt to make change as user with add permission
Source code in app/api/tests/abstract/api_permissions.py
test_change_has_permission()
Check correct permission for change
Make change with user who has change 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-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