From 803d7f32237a1d427047d1bbb4b6fdf9314bcc07 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 6 Jul 2025 19:14:13 +0930 Subject: [PATCH] test(itam): Model DeviceOperatingSystem is not multi-org based skip those tests ref: #855 #801 --- ...l_deviceoperatingsystem_permissions_api.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/itam/tests/functional/additional_deviceoperatingsystem_permissions_api.py diff --git a/app/itam/tests/functional/additional_deviceoperatingsystem_permissions_api.py b/app/itam/tests/functional/additional_deviceoperatingsystem_permissions_api.py new file mode 100644 index 00000000..0f64e6f4 --- /dev/null +++ b/app/itam/tests/functional/additional_deviceoperatingsystem_permissions_api.py @@ -0,0 +1,27 @@ +import pytest + + + +class AdditionalTestCases: + + + def test_returned_results_only_user_orgs(self): + """Returned results check + + Ensure that a query to the viewset endpoint does not return + items that are not part of the users organizations. + """ + + pytest.xfail( reason = 'model is not org based' ) + + + def test_returned_data_from_user_and_global_organizations_only( + self + ): + """Check items returned + + Items returned from the query Must be from the users organization and + global ONLY! + """ + + pytest.xfail( reason = 'model is not org based' )