diff options
| author | Dennis Fink | 2026-08-21 10:37:56 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-08-21 10:37:56 +0200 |
| commit | c5492398f100ccb154fa557d657bae2322f95cf7 (patch) | |
| tree | 21efa67e00c26ab0733a931e6a5810b4c933388b /tests/tasks/test_receiver.py | |
| parent | 5bfcc3c06ebe6d6694221c25f07a4901572f97f5 (diff) | |
| download | webmentions-ssg-c5492398f100ccb154fa557d657bae2322f95cf7.tar.gz webmentions-ssg-c5492398f100ccb154fa557d657bae2322f95cf7.zip | |
test(core): align tests with module ownership
Move direct validator, model, and Huey extension coverage into dedicated
test modules and mock dependencies where behavior belongs to another
module.
Expand Huey extension typing and coverage while removing duplicate
assertions from scanner, sender, form, and view tests.
Diffstat (limited to '')
| -rw-r--r-- | tests/tasks/test_receiver.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/tasks/test_receiver.py b/tests/tasks/test_receiver.py index 17dd45a..daa271d 100644 --- a/tests/tasks/test_receiver.py +++ b/tests/tasks/test_receiver.py @@ -54,9 +54,7 @@ def create_webmention( def get_webmention_state(app: Flask, identifier: uuid.UUID) -> tuple[str, str | None]: with app.app_context(): webmention = db.session.get(ReceivedWebmention, identifier) - assert webmention is not None - return (webmention.status, webmention.failure_reason) @@ -433,9 +431,7 @@ def test_verify_webmention_marks_row_verifying_before_check( return True source_mentions_target.side_effect = verify_source - receiver.verify_webmention.call_local(identifier) - assert get_webmention_state(app, identifier) == ("verified", None) @@ -521,7 +517,6 @@ def test_ensure_public_request_accepts_public_url( is_public_url: Mock, receiver: ModuleType ) -> None: receiver.ensure_public_request(httpx.Request("GET", SOURCE_URL)) - is_public_url.assert_called_once_with(SOURCE_URL) |
