def delete(self, app_spec): LOG.info("Deleting service for %s", app_spec.name) try: Service.delete(app_spec.name, app_spec.namespace) except NotFound: pass
def test_service_deleted(self, delete): Service.delete(SERVICE_NAME, SERVICE_NAMESPACE) # call delete with service_name pytest.helpers.assert_any_call(delete, (SERVICES_URI + SERVICE_NAME))