fix: achados da revisao final (remove TAMANHO_PAGINA morto, httponly no cookie de paginacao, limpa testes)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
9ce6bcdcad
commit
9a7d12f941
@@ -125,3 +125,8 @@ def test_post_logout_apaga_cookie_de_preferencia_de_paginacao():
|
||||
assert resposta.status_code == 303
|
||||
set_cookie = resposta.headers.get("set-cookie", "")
|
||||
assert POR_PAGINA_COOKIE in set_cookie
|
||||
# confirma que o cookie foi de fato apagado (Max-Age=0), não só regravado
|
||||
trecho_cookie = next(
|
||||
parte for parte in resposta.headers.get_list("set-cookie") if POR_PAGINA_COOKIE in parte
|
||||
)
|
||||
assert "Max-Age=0" in trecho_cookie
|
||||
|
||||
Reference in New Issue
Block a user