Test improvements (#1264)

This commit is contained in:
dgtlmoon
2022-12-26 14:17:40 +01:00
committed by GitHub
parent f0966eb23a
commit fc6424c39e
3 changed files with 4 additions and 4 deletions

View File

@@ -38,13 +38,12 @@ def test_select_custom(client, live_server):
res = client.get(url_for("index"))
assert b'Proxy Authentication Required' not in res.data
res = client.get(
url_for("preview_page", uuid="first"),
follow_redirects=True
)
# We should see something via proxy
assert b'HEAD' in res.data
assert b'<div class=""> - 0.' in res.data
#
# Now we should see the request in the container logs for "squid-squid-custom" because it will be the only default