MCPcopy
hub / github.com/msgspec/msgspec / test_decode_validation_error

Function test_decode_validation_error

tests/unit/test_yaml.py:151–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150
151def test_decode_validation_error():
152 with pytest.raises(msgspec.ValidationError, match="Expected `str`"):
153 msgspec.yaml.decode(b"[1, 2, 3]", type=List[str])
154
155
156@pytest.mark.parametrize("strict", [True, False])

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…