test(api): when testing create object, remove the actual created object prior to testing the add

ref: #849
This commit is contained in:
2025-07-04 13:26:07 +09:30
parent c2255a5834
commit 37a69888b6
2 changed files with 6 additions and 2 deletions

View File

@ -101,10 +101,14 @@ class APIPermissionAddInheritedCases:
the_model = model_instance( kwargs_create = model_kwargs )
url = the_model.get_url( many = True )
the_model.delete()
try:
response = client.post(
path = the_model.get_url( many = True ),
path = url,
data = kwargs_api_create
)

View File

@ -29,7 +29,7 @@ class AdditionalTestCases:
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' )