test(api): when testing create object, remove the actual created object prior to testing the add
ref: #849
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
@ -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' )
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user