Skip to content

Commit 87f28dc

Browse files
committed
Tests: uncover a quirk in our linkcheck tests
1 parent a6d7ae1 commit 87f28dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_builders/test_build_linkcheck.py

+2
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ def log_date_time_string(self):
715715
)
716716
def test_follows_redirects_on_HEAD(app, capsys):
717717
with serve_application(app, make_redirect_handler(support_head=True)) as address:
718+
compile_linkcheck_allowed_redirects(app, app.config)
718719
app.build()
719720
_stdout, stderr = capsys.readouterr()
720721
content = (app.outdir / 'output.txt').read_text(encoding='utf8')
@@ -738,6 +739,7 @@ def test_follows_redirects_on_HEAD(app, capsys):
738739
)
739740
def test_follows_redirects_on_GET(app, capsys):
740741
with serve_application(app, make_redirect_handler(support_head=False)) as address:
742+
compile_linkcheck_allowed_redirects(app, app.config)
741743
app.build()
742744
_stdout, stderr = capsys.readouterr()
743745
content = (app.outdir / 'output.txt').read_text(encoding='utf8')

0 commit comments

Comments
 (0)