Skip to content

Commit

Permalink
fix check hook
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Nov 19, 2024
1 parent ea795ce commit a9ddfac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion changedetectionio/tests/visualselector/test_fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def test_visual_selector_content_ready(client, live_server, measure_memory_usage

# 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)
decompressed_data = zlib.decompress(res.data)
json_data = json.loads(decompressed_data.decode('utf-8'))

assert res.mimetype == 'application/json'
assert res.status_code == 200

Expand Down

0 comments on commit a9ddfac

Please sign in to comment.