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

Function test_find_help

tests/test_inputtransformer2.py:263–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261
262
263def test_find_help():
264 for case in [SIMPLE_HELP, DETAILED_HELP, MAGIC_HELP, HELP_IN_EXPR]:
265 check_find(ipt2.HelpEnd, case)
266
267 tf = check_find(ipt2.HelpEnd, HELP_CONTINUED_LINE)
268 assert tf.q_line == 1
269 assert tf.q_col == 3
270
271 tf = check_find(ipt2.HelpEnd, HELP_MULTILINE)
272 assert tf.q_line == 1
273 assert tf.q_col == 8
274
275 # ? in a comment does not trigger help
276 check_find(ipt2.HelpEnd, (["foo # bar?\n"], None, None), match=False)
277 # Nor in a string
278 check_find(ipt2.HelpEnd, (["foo = '''bar?\n"], None, None), match=False)
279
280
281def test_transform_help():

Callers

nothing calls this directly

Calls 1

check_findFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…