MCPcopy
hub / github.com/pallets/flask / test_html_method

Function test_html_method

tests/test_json.py:340–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338
339
340def test_html_method():
341 class ObjectWithHTML:
342 def __html__(self):
343 return "<p>test</p>"
344
345 result = json.dumps(ObjectWithHTML())
346 assert result == '"<p>test</p>"'

Callers

nothing calls this directly

Calls 2

ObjectWithHTMLClass · 0.85
dumpsMethod · 0.45

Tested by

no test coverage detected