Explorer
/tmp/test_aa022_sources.py
← Zurück ↓ Download
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from intake.rss_intake import RSS_FEEDS

def test_professional_rss_sources_are_configured():
    names = {feed['name'] for feed in RSS_FEEDS}
    assert 'Soler & Palau Blog RSS (ES) — ventilación/CO2/humedad' in names
    assert 'BESA Building Engineering RSS (EN) — IAQ/ventilation' in names
    assert 'IDAE RSS (ES) — climatización/edificios' in names

def test_professional_rss_sources_are_real_rss_urls():
    urls = {feed['url'] for feed in RSS_FEEDS}
    assert 'https://www.solerpalau.com/blog/es-es/feed/' in urls
    assert 'https://www.thebesa.com/besa-blogs/rss.xml' in urls
    assert 'https://www.idae.es/rss.xml' in urls