Skip to content

Commit 038d7b1

Browse files
fix: correct assertion syntax in CycleListCreateAPIEndpoint tests
* Updated the assertion in the test for successful cycle creation to use the correct syntax for checking the response status code. * Ensured that the test accurately verifies the expected behavior of the API endpoint.
1 parent c5a607c commit 038d7b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api/plane/tests/contract/api/test_cycles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_create_cycle_success(self, api_key_client, workspace, project, cycle_da
7575

7676
response = api_key_client.post(url, cycle_data, format="json")
7777

78-
response.status_code == status.HTTP_201_CREATED
78+
assert response.status_code == status.HTTP_201_CREATED
7979

8080
assert Cycle.objects.count() == 1
8181

0 commit comments

Comments
 (0)