SPB Git

spb/ai-atlas

Public
1.4 KB · 23 lines python
1from aiatlas.connectors.labs.nvidia import BLOG_RSS, DEVELOPER_RSS, NvidiaConnector2from aiatlas.sdk.facts import Target3from tests.conftest import extract_from_fixture, fixture_path456async def test_blog_feed():7    facts = await extract_from_fixture(NvidiaConnector(), Target(url=BLOG_RSS, doc_type="feed", key="blog"), fixture_path("nvidia", "blog.rss.xml"),8                                       content_type="application/rss+xml")9    assert len(facts.events) == 1810    first = facts.events[0]11    assert first.summary.startswith("NVIDIA: Skild AI Taps NVIDIA Physical AI") and first.effective_at.date().isoformat() == "2026-09-10"12    assert first.meta["source"] == "blogs.nvidia.com" and "Robotics" in first.meta["categories"]13    assert facts.document_title == "NVIDIA Blog"141516async def test_developer_feed():17    facts = await extract_from_fixture(NvidiaConnector(), Target(url=DEVELOPER_RSS, doc_type="feed", key="developer"), fixture_path("nvidia", "developer-blog.atom.xml"),18                                       content_type="application/atom+xml")19    assert len(facts.events) == 3020    assert facts.events[0].summary.startswith("NVIDIA: How Full-Stack NIM Optimizations") and facts.events[0].meta["source"] == "developer.nvidia.com/blog"21    assert len([t for t in facts.targets if t.doc_type == "news"]) == 1022    assert len({e.dedupe_key for e in facts.events}) == 3023
Files · 0f064299de6124ef553ef1bf8a851ae63aeae373
Menu

Theme