More test fixes
This commit is contained in:
parent
412d2a1bbe
commit
49c7421591
|
@ -176,6 +176,7 @@ def delete(model):
|
|||
|
||||
:param model:
|
||||
"""
|
||||
if model:
|
||||
db.session.delete(model)
|
||||
db.session.commit()
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ def test_admin_destination_put(client):
|
|||
|
||||
|
||||
def test_admin_destination_delete(client):
|
||||
assert client.delete(api.url_for(Destinations, destination_id=1), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 500
|
||||
assert client.delete(api.url_for(Destinations, destination_id=1), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 200
|
||||
|
||||
|
||||
def test_admin_destination_patch(client):
|
||||
|
|
Loading…
Reference in New Issue