MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _block

Function _block

tests/test_html_theme.py:39–42  ·  view source on GitHub ↗
(html, selector)

Source from the content-addressed store, hash-verified

37
38
39def _block(html, selector):
40 m = re.search(re.escape(selector) + r"\s*\{([^}]*)\}", html)
41 assert m, f"missing CSS block {selector}"
42 return dict(re.findall(r"(--[\w-]+):\s*([^;]+);", m.group(1)))
43
44
45def test_dark_defaults_match_previous_hardcoded_colors(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected