MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_external_script_blocks

Function test_external_script_blocks

tests/test_deck_validator.py:144–150  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

142
143
144def test_external_script_blocks(tmp_path: Path):
145 html = GOOD_DECK.replace(
146 "</head>",
147 '<script src="https://cdn.example/x.js"></script></head>',
148 )
149 result = validate_deck(_write(tmp_path, html))
150 assert any("not self-contained" in e for e in result.errors)
151
152
153def test_external_img_blocks(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

validate_deckFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected