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

Class _Custom

tests/test_security.py:407–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405def test_sanitize_metadata_string_coerces_non_string():
406 # Non-str/dict/list/scalar inputs route through string sanitisation.
407 class _Custom:
408 def __str__(self) -> str:
409 return "custom-repr"
410 assert _sanitize_metadata_string(_Custom()) == "custom-repr"
411
412

Calls

no outgoing calls