From ab943c0c517f20f46d46ce17638367acdae09fcb Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 9 Nov 2023 18:49:50 +0100 Subject: [PATCH] Improving test coverage --- changedetectionio/tests/visualselector/test_fetch_data.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changedetectionio/tests/visualselector/test_fetch_data.py b/changedetectionio/tests/visualselector/test_fetch_data.py index 67379f90..3d7172b1 100644 --- a/changedetectionio/tests/visualselector/test_fetch_data.py +++ b/changedetectionio/tests/visualselector/test_fetch_data.py @@ -54,6 +54,11 @@ def test_visual_selector_content_ready(client, live_server): with open(os.path.join('test-datastore', uuid, 'elements.json'), 'r') as f: json.load(f) + # Attempt to fetch it via the web hook that the browser would use + res = client.get(url_for('static_content', group='visual_selector_data', filename=uuid)) + json.loads(res.data) + + # Some options should be enabled # @todo - in the future, the visibility should be toggled by JS from the request type setting res = client.get(