MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_plain_url

Method test_plain_url

ci/tests/test_asset_scanner.py:22–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 """Python-side parsing must match the C++ `parse_lnk_with_metadata`."""
21
22 def test_plain_url(self) -> None:
23 entry = _parse_lnk_content("https://example.com/a.mp3\n")
24 assert entry is not None
25 self.assertEqual(entry.url, "https://example.com/a.mp3")
26 self.assertIsNone(entry.sha256)
27 self.assertIsNone(entry.fallback)
28
29 def test_comment_and_blank_lines_skipped(self) -> None:
30 content = (

Callers

nothing calls this directly

Calls 1

_parse_lnk_contentFunction · 0.90

Tested by

no test coverage detected