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

Function test_guizang_shape_passes_generic_mode

tests/test_deck_validator.py:117–132  ·  view source on GitHub ↗

A third-party deck (no data-type, uses CSS class for kind) must pass the default (skill-agnostic) validator. Confirms #2 in the architectural-review fix list.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

115
116
117def test_guizang_shape_passes_generic_mode(tmp_path: Path):
118 """A third-party deck (no data-type, uses CSS class for kind) must
119 pass the default (skill-agnostic) validator. Confirms #2 in the
120 architectural-review fix list."""
121 guizang_shape = (
122 "<html><body>"
123 '<section class="slide hero active"><h1>Cover</h1></section>'
124 '<section class="slide act inverse"><h1>Act 1</h1></section>'
125 '<section class="slide grid6"><div>Numbers</div></section>'
126 '<section class="slide two-col"><div>L</div><div>R</div></section>'
127 '<section class="slide q inverse"><h2>?</h2></section>'
128 '<section class="slide hero inverse"><h1>Close</h1></section>'
129 "</body></html>"
130 )
131 result = validate_deck(_write(tmp_path, guizang_shape))
132 assert result.errors == [], f"unexpected errors: {result.errors}"
133
134
135def test_external_link_blocks(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

validate_deckFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected