Skip to content

Commit

Permalink
workflows: destroy workflows and delete/stop running tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 19, 2024
1 parent b66048c commit ebe4a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backoffice/backoffice/workflows/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from django.test import TransactionTestCase
from django.urls import reverse
from django_opensearch_dsl.registries import registry
from rest_framework import status
from rest_framework.test import APIClient

from backoffice.workflows import airflow_utils
Expand Down Expand Up @@ -113,7 +114,7 @@ def test_destroy(self):
url = reverse("api:workflows-detail", kwargs={"pk": self.workflow.id})
response = self.api_client.delete(url)

self.assertEqual(response.status_code, 204)
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
assert (
airflow_utils.find_executed_dags(
self.workflow.id, self.workflow.workflow_type
Expand Down

0 comments on commit ebe4a67

Please sign in to comment.