Skip to content

Commit fc03b0d

Browse files
committed
test: make CRUD test flow atomic using single player ID
1 parent b57bdad commit fc03b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def test_request_delete_player_id_unknown_response_status_not_found(client):
239239
def test_request_delete_player_id_existing_response_status_no_content(client):
240240
"""DELETE /players/{player_id} with existing ID returns 204 No Content"""
241241
# Arrange
242-
player_id = 21 # Alejandro Gómez - intentionally removed from collection
242+
player_id = 24 # Thiago Almada - created by POST test, now deleted (atomic)
243243
# Act
244244
response = client.delete(PATH + str(player_id))
245245
# Assert

0 commit comments

Comments
 (0)