A bunch of remaining ds_client conversions, refs #1959

This commit is contained in:
Simon Willison 2022-12-16 09:44:30 -08:00
commit 42a66c2f04
5 changed files with 17 additions and 14 deletions

View file

@ -485,6 +485,7 @@ def test_database_download_for_immutable():
def test_database_download_disallowed_for_mutable(app_client):
# Use app_client because we need a file database, not in-memory
response = app_client.get("/fixtures")
soup = Soup(response.content, "html.parser")
assert len(soup.findAll("a", {"href": re.compile(r"\.db$")})) == 0