[WEB-4558] fix: project test cases #7464
This commit is contained in:
parent
3c6e2b4447
commit
af81064961
1 changed files with 4 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue