diff options
| author | Dennis Fink | 2026-11-12 22:56:07 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-12 22:56:07 +0100 |
| commit | a10b29ac98ba535a5c2f9697c54265edd2c84a78 (patch) | |
| tree | f116a58be6e241a11d283683070ebb18c96aa8e4 /tests/tasks/test_consumer.py | |
| parent | 1db6b47f88dde5538efa433328987c70eab74d70 (diff) | |
| download | webmentions-ssg-a10b29ac98ba535a5c2f9697c54265edd2c84a78.tar.gz webmentions-ssg-a10b29ac98ba535a5c2f9697c54265edd2c84a78.zip | |
refactor(core): use lowercase extension names
Rename shared Flask extension singletons to conventional lowercase names
and update imports throughout the application and tests to remove
redundant aliases.
Diffstat (limited to 'tests/tasks/test_consumer.py')
| -rw-r--r-- | tests/tasks/test_consumer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tasks/test_consumer.py b/tests/tasks/test_consumer.py index 7604691..1563cdd 100644 --- a/tests/tasks/test_consumer.py +++ b/tests/tasks/test_consumer.py @@ -10,7 +10,7 @@ from unittest.mock import Mock import pytest from flask import Flask -from webmentions_ssg import HUEY +from webmentions_ssg import huey def test_consumer_registers_scanner_digest_reaper_and_retention( @@ -34,12 +34,12 @@ def test_consumer_registers_scanner_digest_reaper_and_retention( periodic_task = Mock(side_effect=register) monkeypatch.setattr(webmentions_ssg, "create_app", Mock(return_value=app)) - monkeypatch.setattr(HUEY, "periodic_task", periodic_task) + monkeypatch.setattr(huey, "periodic_task", periodic_task) consumer = importlib.import_module("webmentions_ssg.tasks.consumer") from webmentions_ssg.tasks import notifications, receiver, retention, scanner - assert consumer.huey is HUEY.huey + assert consumer.huey is huey.huey assert periodic_task.call_count == 4 assert registered_tasks == [ scanner.scan_sources, |
