Skip to content

Commit

Permalink
And check for the field
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed May 17, 2024
1 parent 274d04f commit 1a0a478
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion changedetectionio/tests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,15 @@ def test_headers_textfile_in_request(client, live_server):
)
assert b'Settings updated' in res.data

print("TEST URL IS ", test_url)
res = client.get(url_for("settings_page"))

# Only when some kind of real browser is setup
if os.getenv('PLAYWRIGHT_DRIVER_URL'):
assert b'requests-default_ua-html_webdriver' in res.data

# Field should always be there
assert b"requests-default_ua-html_requests" in res.data

# Add the test URL twice, we will check
res = client.post(
url_for("import_page"),
Expand Down

0 comments on commit 1a0a478

Please sign in to comment.