From b1c01140a3c11481a107036a18d1e05872370141 Mon Sep 17 00:00:00 2001 From: Ricardo Oliveira Date: Wed, 2 Oct 2024 18:04:12 -0300 Subject: [PATCH] user_id no path corrigido para conflitar no teste --- aulas/08.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aulas/08.md b/aulas/08.md index 6c9c0c72..5da004d7 100644 --- a/aulas/08.md +++ b/aulas/08.md @@ -46,7 +46,7 @@ Para testar isso, criaremos um novo teste chamado test_update_user_with_wrong_us ```python title="tests/test_users.py" def test_update_user_with_wrong_user(client, user, token): response = client.put( - f'/users/{user.id}', + f'/users/{user.id + 1}', headers={'Authorization': f'Bearer {token}'}, json={ 'username': 'bob',