Skip to content

Commit 1e9e423

Browse files
committed
test(binder): update test_flatten_vol_urls for compatibility redirects
1 parent 7a3c41d commit 1e9e423

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

book/tests/test_flatten_vol_urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def test_flatten_vol_urls_rewrites_generated_volume_links(tmp_path: Path) -> Non
5151

5252
subprocess.run(["bash", str(SCRIPT), str(site), "vol1"], check=True)
5353

54-
assert not (site / "contents" / "vol1").exists()
54+
redirect_html = (site / "contents" / "vol1" / "data_engineering" / "data_engineering.html").read_text(encoding="utf-8")
55+
assert "http-equiv=\"refresh\"" in redirect_html
5556
assert (site / "data_engineering" / "data_engineering.html").exists()
5657
assert (site / "frontmatter" / "about.html").exists()
5758

0 commit comments

Comments
 (0)