Skip to content

Commit

Permalink
Test form actions use prefix, refs #1883
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 11, 2022
1 parent 867e0ab commit bbaab3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,8 @@ def test_base_url_config(app_client_base_url_prefix, path, use_prefix):
path_to_get = "/prefix/" + path.lstrip("/")
response = client.get(path_to_get)
soup = Soup(response.body, "html.parser")
for form in soup.select("form"):
assert form["action"].startswith("/prefix")
for el in soup.findAll(["a", "link", "script"]):
if "href" in el.attrs:
href = el["href"]
Expand Down

0 comments on commit bbaab3b

Please sign in to comment.