MCPcopy Index your code
hub / github.com/ipython/ipython / test_parse_sample

Function test_parse_sample

tests/test_pycolorize.py:56–64  ·  view source on GitHub ↗

and test writing to a buffer

(theme_name)

Source from the content-addressed store, hash-verified

54
55
56def test_parse_sample(theme_name):
57 """and test writing to a buffer"""
58 buf = io.StringIO()
59 p = Parser(theme_name=theme_name)
60 p.format(sample, buf)
61 buf.seek(0)
62 f1 = buf.read()
63
64 assert "ERROR" not in f1
65
66
67def test_parse_error(theme_name):

Callers

nothing calls this directly

Calls 4

formatMethod · 0.95
ParserClass · 0.90
seekMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…