From c74feda222745ab7cca8993df83d9ea5f9d07e5b Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sat, 14 Nov 2026 19:43:28 +0100 Subject: refactor(core): use HTTPStatus consistently Replace numeric HTTP response and assertion codes in views and tests with `HTTPStatus` members so status handling is more descriptive and consistent. --- tests/test_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_models.py') diff --git a/tests/test_models.py b/tests/test_models.py index 01e2cec..d2b667c 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -5,6 +5,7 @@ import uuid from collections.abc import Callable from datetime import UTC, datetime +from http import HTTPStatus from typing import get_type_hints import pytest @@ -318,7 +319,7 @@ def test_resend_requeues_current_revision_without_losing_send_history() -> None: status=SentWebmentionStatus.FAILED, failure_reason="Previous failure", endpoint="https://example.com/webmention", - response_status=503, + response_status=HTTPStatus.SERVICE_UNAVAILABLE, status_url="https://example.com/status", attempt_count=3, next_retry_at=sent_at, -- cgit v1.3.1