Skip to content

Commit 0272e5d

Browse files
authored
Fix rtd valid injection test
1 parent 0cd67f5 commit 0272e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def test_rtd_override(app: Sphinx, monkeypatch):
305305
@pytest.mark.sphinx('html', testroot='rtd-default')
306306
def test_rtd_valid(app: Sphinx, monkeypatch):
307307
monkeypatch.setenv('READTHEDOCS', 'True')
308-
app.config.html_baseurl = 'https://failure.com/en/latest/'
308+
monkeypatch.setenv('READTHEDOCS_CANONICAL_URL', 'https://failure.com/en/latest/')
309309

310310
app.build()
311311
tags = conftest._og_meta_tags(app)

0 commit comments

Comments
 (0)