diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/tasks/test_endpoint_discovery.py (renamed from tests/tasks/test_discovery.py) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tasks/test_discovery.py b/tests/tasks/test_endpoint_discovery.py index 4616a53..98c167b 100644 --- a/tests/tasks/test_discovery.py +++ b/tests/tasks/test_endpoint_discovery.py @@ -10,7 +10,7 @@ import httpx import pytest from flask import Flask -from webmentions_ssg.tasks import discovery +from webmentions_ssg.tasks import endpoint_discovery SOURCE_URL = "https://dennisfink.me/blog/example/" TARGET_URL = "https://example.com/post" @@ -21,9 +21,9 @@ STATUS_URL = "https://example.com/webmention/status/123" @pytest.fixture def sender_module(app: Flask) -> ModuleType: _ = app - from webmentions_ssg.tasks import discovery + from webmentions_ssg.tasks import endpoint_discovery - return discovery + return endpoint_discovery @pytest.mark.parametrize( @@ -707,7 +707,7 @@ def test_resolve_endpoint_url_rejects_invalid_url( sender_module: ModuleType, monkeypatch: pytest.MonkeyPatch ) -> None: is_http_url = Mock(return_value=False) - monkeypatch.setattr(discovery, "is_http_url", is_http_url) + monkeypatch.setattr(endpoint_discovery, "is_http_url", is_http_url) response = httpx.Response(HTTPStatus.OK, request=httpx.Request("GET", TARGET_URL)) with pytest.raises( sender_module.PermanentDeliveryError, match="Invalid Webmention endpoint" |
