Skip to content

Commit 1a0a478

Browse files
committed
And check for the field
1 parent 274d04f commit 1a0a478

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

changedetectionio/tests/test_request.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,15 @@ def test_headers_textfile_in_request(client, live_server):
281281
)
282282
assert b'Settings updated' in res.data
283283

284-
print("TEST URL IS ", test_url)
284+
res = client.get(url_for("settings_page"))
285+
286+
# Only when some kind of real browser is setup
287+
if os.getenv('PLAYWRIGHT_DRIVER_URL'):
288+
assert b'requests-default_ua-html_webdriver' in res.data
289+
290+
# Field should always be there
291+
assert b"requests-default_ua-html_requests" in res.data
292+
285293
# Add the test URL twice, we will check
286294
res = client.post(
287295
url_for("import_page"),

0 commit comments

Comments
 (0)