Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-4558] fix: project test cases #7464

Sangeethaaf81064961f5
diff --git a/apps/api/plane/tests/contract/app/test_project_app.py b/apps/api/plane/tests/contract/app/test_project_app.py
index f7d41e2a29..78bcd7aeac 100644
--- a/apps/api/plane/tests/contract/app/test_project_app.py
+++ b/apps/api/plane/tests/contract/app/test_project_app.py
@@ -181,7 +181,7 @@ class TestProjectAPIPost(TestProjectBase):
response = session_client.post(url, project_data, format="json")
- assert response.status_code == status.HTTP_409_CONFLICT
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.django_db
def test_create_project_duplicate_identifier(
@@ -200,7 +200,7 @@ class TestProjectAPIPost(TestProjectBase):
response = session_client.post(url, project_data, format="json")
- assert response.status_code == status.HTTP_409_CONFLICT
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.django_db
def test_create_project_missing_required_fields(
@@ -493,7 +493,7 @@ class TestProjectAPIPatchDelete(TestProjectBase):
response = session_client.patch(url, update_data, format="json")
- assert response.status_code == status.HTTP_409_CONFLICT
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.django_db
def test_partial_update_duplicate_identifier_conflict(
@@ -515,7 +515,7 @@ class TestProjectAPIPatchDelete(TestProjectBase):
response = session_client.patch(url, update_data, format="json")
- assert response.status_code == status.HTTP_409_CONFLICT
+ assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.django_db
def test_partial_update_invalid_data(self, session_client, workspace, create_user):