From 2e82b17cacb509f08c3721cd6f9941cf0b1dc45b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 23 Aug 2024 21:51:33 +0200 Subject: [PATCH] fix path --- .../tests/ml_price_scraper/test_scrape_price_element.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changedetectionio/tests/ml_price_scraper/test_scrape_price_element.py b/changedetectionio/tests/ml_price_scraper/test_scrape_price_element.py index b2a5d630..e2bc868e 100644 --- a/changedetectionio/tests/ml_price_scraper/test_scrape_price_element.py +++ b/changedetectionio/tests/ml_price_scraper/test_scrape_price_element.py @@ -106,7 +106,10 @@ def test_restock_itemprop_basic(client, live_server): set_response(price="123.99") + # because it needs to access itself from within the sockpuppetbrowser test_url = url_for('test_endpoint', _external=True) + test_url = test_url.replace('localhost.localdomain', 'cdio') + test_url = test_url.replace('localhost', 'cdio') client.post( url_for("form_quick_watch_add"),