From eb2560e77dd4bca89cd72190a4158aa4c3922f02 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 9 Nov 2023 18:53:11 +0100 Subject: [PATCH] some small extra checks --- changedetectionio/tests/visualselector/test_fetch_data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changedetectionio/tests/visualselector/test_fetch_data.py b/changedetectionio/tests/visualselector/test_fetch_data.py index 3d7172b1..c115ae2a 100644 --- a/changedetectionio/tests/visualselector/test_fetch_data.py +++ b/changedetectionio/tests/visualselector/test_fetch_data.py @@ -57,6 +57,8 @@ def test_visual_selector_content_ready(client, live_server): # 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) + assert res.mimetype == 'application/json' + assert res.status_code == 200 # Some options should be enabled