#!/usr/bin/env python3 import time from flask import url_for from .util import set_original_response, set_modified_response, live_server_setup, wait_for_all_checks, extract_rss_token_from_UI, \ extract_UUID_from_client, delete_all_watches def set_original_cdata_xml(): test_return_data = """ Security Bulletins on wetscale https://wetscale.com/security-bulletins/ Recent security bulletins from wetscale Fri, 10 Oct 2025 14:58:11 GMT https://validator.w3.org/feed/docs/rss2.html wetscale.com en-US © 2025 wetscale Inc. All rights reserved. TS-2025-005 https://wetscale.com/security-bulletins/#ts-2025-005 https://wetscale.com/security-bulletins/#ts-2025-005 Thu, 07 Aug 2025 00:00:00 GMT

Wet noodles escape

they also found themselves outside

TS-2025-004 https://wetscale.com/security-bulletins/#ts-2025-004 https://wetscale.com/security-bulletins/#ts-2025-004 Tue, 27 May 2025 00:00:00 GMT

The days of Terminator and The Matrix could be closer. But be positive.

Read more link...

]]>
""" with open("test-datastore/endpoint-content.txt", "w") as f: f.write(test_return_data) def test_rss_reader_mode(client, live_server, measure_memory_usage): set_original_cdata_xml() # Rarely do endpoints give the right header, usually just text/xml, so we check also for ' not in snapshot_contents assert '<' not in snapshot_contents assert 'The days of Terminator and The Matrix' in snapshot_contents assert 'PubDate: Thu, 07 Aug 2025 00:00:00 GMT' in snapshot_contents delete_all_watches(client) def test_rss_reader_mode_with_css_filters(client, live_server, measure_memory_usage): set_original_cdata_xml() # Rarely do endpoints give the right header, usually just text/xml, so we check also for ' not in snapshot_contents assert '<' not in snapshot_contents assert 'The days of Terminator and The Matrix' in snapshot_contents delete_all_watches(client)