test(devops): If test publically accessable, dont test by user org only as test is NA
ref: #849 #782
This commit is contained in:
@ -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']:
|
||||||
|
Reference in New Issue
Block a user