From 6f3a68b70b39fa46f8fb185024d0ee7e9d97ae77 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 26 Mar 2026 22:23:13 +0100 Subject: [PATCH] Selenium doesnt support headers --- changedetectionio/tests/test_request.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/tests/test_request.py b/changedetectionio/tests/test_request.py index 9f4fda32..a573ccef 100644 --- a/changedetectionio/tests/test_request.py +++ b/changedetectionio/tests/test_request.py @@ -9,6 +9,10 @@ from . util import set_original_response, set_modified_response, live_server_set # Hard to just add more live server URLs when one test is already running (I think) # So we add our test here (was in a different file) def test_headers_in_request(client, live_server, measure_memory_usage, datastore_path): + if os.getenv('WEBDRIVER_URL'): + print("Selenium doesnt support custom HTTP headers!!") + return + #ve_server_setup(live_server) # Add our URL to the import page test_url = url_for('test_headers', _external=True)