Commit Graph

62 Commits

Author SHA1 Message Date
Jon
4dd19ba22f fix(tests): Correct Permission Import due to removing from access.models
ref: #605 #601
2025-02-18 04:13:35 +09:30
Jon
25373fc5b6 test: Disable Old History Model test suites
ref: #601 #602 #605
2025-02-18 04:13:33 +09:30
Jon
68d3c1ff26 test(settings): Test User Settings API render to ensure browser_model exists and is the correct type
ref: #554 closes #507
2025-02-10 17:32:59 +09:30
Jon
e5680cdbce test(settings): Test User Settings model to ensure browser_mode field exists
ref: #554 #507
2025-02-10 17:31:42 +09:30
Jon
d55010d63f test(settings): External Links Note Model Checks
ref: #525 closes #545
2025-02-09 19:35:06 +09:30
Jon
9b62ba6367 test(settings): Serializer Checks for External Links Notes
ref: #525 #545
2025-02-09 17:58:27 +09:30
Jon
32c6991730 test(settings): External Links Notes Function Viewset Tests
ref: #525 #545
2025-02-08 23:08:27 +09:30
Jon
5d17e1a49c test(settings): External Notes Test Cases for ViewSet
ref: #525 #545
2025-02-08 19:31:52 +09:30
Jon
bc8815d607 test(Settings): External Link Notes Test Cases for API Field Checks
ref: #525 #545
2025-02-08 17:33:57 +09:30
Jon
5d8332015b test(settings): Add missing unit tests for user settings ticket viewset
ref: #512 #513 #518
2025-02-06 21:08:59 +09:30
Jon
91e83b0ad9 test(settings): Add missing unit tests for app settings ticket viewset
ref: #512 #513 #518
2025-02-06 21:08:52 +09:30
Jon
83fb6d005b test: Add empty kwargs to ViewSet index page test cases
ref: #512 #513 #518
2025-02-06 20:35:46 +09:30
Jon
0ed80217f2 test(settings): Add missing unit tests for external links viewset
ref: #512 #513 #518
2025-02-06 17:24:03 +09:30
Jon
1ad370e7cf test(settings): when checking if user can delete own settings, user must be owner of settings
ref: #471 #511
2025-02-01 17:55:37 +09:30
Jon
78afe7c86b test(settings): regardless of permissions a user can change their own settings
ref: #471 #511
2025-02-01 17:26:12 +09:30
Jon
06e0943e30 test(settings): Remove no-permission failure test as user settings require no permissions
ref: #485 fixes #486
2025-01-24 15:46:01 +09:30
Jon
f08d3357d0 test: update to cater for tenancy object in request
ref: #473 #474
2025-01-18 22:57:00 +09:30
Jon
a6fda85c56 test(settings): check to ensure API fields returned are present and correct type for external_links model
ref: #467 #468
2025-01-09 17:40:01 +09:30
Jon
e7601e311a test(access): Skip test case for appsettings different organization due to model not being tenancy model.
ref: #448 #459
2025-01-04 18:26:12 +09:30
Jon
1087dde2d5 test(access): Ensure items returned from query are from user organization and/or globally set organization
ref: #459 closes #448
2025-01-04 18:04:02 +09:30
Jon
193c6c3b7f feat(api): Add IndexViewset to ViewSet mixin
ref: #442 #456
2024-12-27 23:03:39 +09:30
Jon
d9b9e32019 test(settings): Dont test user settings for table view
this view not expected to be

ref: #410 #417 closes #412
2024-12-06 14:28:38 +09:30
Jon
3bce54b495 test(steeings): Dont test app settings for table view
this view not expected to be

ref: #410 #412 #417
2024-12-06 14:27:58 +09:30
Jon
a10f1b3694 test(settings): API Metadata checks for user settings
ref: #410 #412 #415
2024-12-04 23:22:52 +09:30
Jon
11abf177ab test(settings): API Metadata checks for external links
ref: #410 #412 #415
2024-12-04 23:22:34 +09:30
Jon
becf55e22f test(settings): API Metadata checks for app settings
ref: #410 #412 #415
2024-12-04 23:22:22 +09:30
Jon
ae2891f0ac test(settings): Ensure items returned are from users orgs only for API v2 endpoints
ref: #248 #359 #397
2024-11-28 02:58:45 +09:30
Jon
ad54494df0 test: Add ViewSet Returned Serializer Checks to a majority of models
more to come

ref: #15 #248 #392 #393
2024-11-28 02:22:29 +09:30
Jon
463774a718 test: model get_url function checks
ref: #248 #391 nofusscomputing/centurion_erp_ui#29 closes #366
2024-11-28 02:22:27 +09:30
Jon
ad9ed13bc4 test(settings): External Link API ViewSet permission checks
ref: #15 #248 #383
2024-11-28 02:22:25 +09:30
Jon
bfbaac0c21 test(access): External Link API v2 Serializer Checks
ref: #15 #248 #383
2024-11-28 02:22:25 +09:30
Jon
f695f14e14 test(functional): Move functional test cases to relevant functional test dir
ref: #15 #375 #382
2024-11-28 02:22:25 +09:30
Jon
4acfe5f313 test(core): fix broken tests from 8b701785b3 changes
ref: #15 #248 #368 #374
2024-11-28 02:22:22 +09:30
Jon
268e3294a2 feat(api): Setup API to be correctly versioned
ref: #248 #365
2024-11-28 02:22:16 +09:30
Jon
50edfd5997 test(settings): User Settings API v2 ViewSet permission checks
ref: #15 #248 #360
2024-11-28 02:22:16 +09:30
Jon
9137758294 test(settings): User Settings API field checks
ref: #15 #248 #360
2024-11-28 02:22:16 +09:30
Jon
94045d136f test(settings): App Settings API v2 ViewSet permission checks
ref: #15 #248 #360
2024-11-28 02:22:16 +09:30
Jon
768fd8d640 test(settings): App Settings API field checks
ref: #15 #248 #360
2024-11-28 02:22:16 +09:30
Jon
9f81c49119 test: Adjust tests to cater for action choices now being an integer
ref: #15 #46 #248 #354
2024-11-28 02:22:06 +09:30
Jon
8f9682b0c4 test(Settings): Add index viewset checks
ref:  #345 #346
2024-11-28 02:18:26 +09:30
Jon
28ce99f46a test(external_link): add tests
!43 fixes #6
2024-08-23 17:45:43 +09:30
Jon
f29ec63f46 test: Add Test case abstract classes to models
!35 #46 #15
2024-07-13 16:01:12 +09:30
Jon
58b134ae30 refactor(tests): move unit tests to unit test sub-directory
!33 #15
2024-06-19 22:58:50 +09:30
Jon
2be4810ed4 test: move manufacturer to it's parent
!27
2024-06-17 13:59:21 +09:30
Jon
3613318217 test: move tests to the module they belong to
!27 #15
2024-06-16 01:44:33 +09:30
Jon
ceb1929d8c test: refactor history permission tests to use an abstract class of test cases
!27 #15
2024-06-16 01:43:07 +09:30
Jon
e72eedf077 test: refactor model permission tests to use an abstract class of test cases
!27 #15
2024-06-15 21:40:33 +09:30
Jon
930e5aeb69 test(settings): access permission check for app settings
!18 #15 closes #48
2024-06-06 02:30:29 +09:30
Jon
ff595b0cba test(settings): history view permission check for software category
!18 #48 #15
2024-06-06 01:44:51 +09:30
Jon
a4bc4b1560 test(settings): history view permission check for manufacturer
!18 #48 #15
2024-06-06 01:44:40 +09:30