Skip to content

I can't run lectern tests locally #508

@edayot

Description

@edayot

I get some 403 Forbidden HTTP responses while I'm downloading the image at this link : https://static.wikia.nocookie.net/minecraft_gamepedia/images/f/f8/Lectern_JE2_BE1.png in the lectern tests.

Logs :

================================================================================================== short test summary info ===================================================================================================
FAILED tests/test_examples.py::test_text[examples/with_links/pack_icon_link.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_text[README.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_text_equality[examples/with_links/pack_icon_link.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_text_equality[README.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown[examples/with_links/pack_icon_link.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown[README.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown_equality[examples/with_links/pack_icon_link.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown_equality[README.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown_external_files[examples/with_links/pack_icon_link.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_markdown_external_files[README.md] - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tests/test_examples.py::test_beet_project - beet.toolchain.pipeline.PluginError: Plugin "lectern.plugin.lectern" raised an exception.
=============================================================================================== 11 failed, 147 passed in 1.75s ===============================================================================================

When i use wget it's not a problem at all :

wget https://static.wikia.nocookie.net/minecraft_gamepedia/images/f/f8/Lectern_JE2_BE1.png
--2026-03-24 22:13:56--  https://static.wikia.nocookie.net/minecraft_gamepedia/images/f/f8/Lectern_JE2_BE1.png
Résolution de static.wikia.nocookie.net (static.wikia.nocookie.net)… 162.159.142.170, 172.66.2.166
Connexion à static.wikia.nocookie.net (static.wikia.nocookie.net)|162.159.142.170|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 3974 (3,9K) [image/webp]
Enregistre : ‘Lectern_JE2_BE1.png’

Lectern_JE2_BE1.png                                     100%[=============================================================================================================================>]   3,88K  --.-KB/s    ds 0s      

2026-03-24 22:13:56 (105 MB/s) - ‘Lectern_JE2_BE1.png’ enregistré [3974/3974]

It's painful to update tests manually with this restriction, but it's seems to be working on github CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions