Skip to content

Commit 1b3295e

Browse files
Refactor test for updating non-existent user ID
1 parent 2b4571a commit 1b3295e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

week_003/tests/test_update_user_nonexistent_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_update_user_nonexistent_id():
2626
assert response.status_code == 201
2727

2828
assert "message" in response_body, f"The 'message' key was not found in the response! {response_body}"
29-
assert response_body["message"] == "Registration completed successfully"
29+
assert response_body["message"] == "Cadastro realizado com sucesso"
3030

3131
except requests.exceptions.RequestException as error_update_user_nonexistent_id:
3232
pytest.fail(f"The request failed due to a connection error: {error_update_user_nonexistent_id}")

0 commit comments

Comments
 (0)