]]>
"""
with open(os.path.join(datastore_path, "endpoint-content.txt"), "w") as f:
f.write(test_return_data)
def test_rss_reader_mode(client, live_server, measure_memory_usage, datastore_path):
set_original_cdata_xml(datastore_path=datastore_path)
# 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, datastore_path):
set_original_cdata_xml(datastore_path=datastore_path)
# 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)