test(devops): If test publically accessable, dont test by user org only as test is NA

ref: #849 #782
This commit is contained in:
2025-07-04 10:10:15 +09:30
parent 882ae90d83
commit 1f4ce92623

View File

@ -451,6 +451,13 @@ class APIPermissionViewInheritedCases:
if response.status_code == 405: if response.status_code == 405:
pytest.xfail( reason = 'ViewSet does not have this request method.' ) pytest.xfail( reason = 'ViewSet does not have this request method.' )
elif IsAuthenticatedOrReadOnly in response.renderer_context['view'].permission_classes:
pytest.xfail( reason = 'ViewSet is public viewable, test is N/A' )
assert response.status_code == 200
contains_different_org: bool = False contains_different_org: bool = False
for item in response.data['results']: for item in response.data['results']: