(html, selector)
| 37 | |
| 38 | |
| 39 | def _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 | |
| 45 | def test_dark_defaults_match_previous_hardcoded_colors(tmp_path): |
no outgoing calls
no test coverage detected