MCPcopy Create free account
hub / github.com/ipython/ipython / test_ipy_prompt

Function test_ipy_prompt

IPython/core/tests/test_inputtransformer.py:351–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349
350
351def test_ipy_prompt():
352 tt.check_pairs(transform_and_reset(ipt.ipy_prompt), syntax['ipy_prompt'])
353 for example in syntax_ml['ipy_prompt']:
354 transform_checker(example, ipt.ipy_prompt)
355
356 # Check that we don't transform the second line if we're inside a cell magic
357 transform_checker([
358 (u'%%foo', '%%foo'),
359 (u'In [1]: bar', 'In [1]: bar'),
360 ], ipt.ipy_prompt)
361
362def test_assemble_logical_lines():
363 tests = \

Callers

nothing calls this directly

Calls 2

transform_and_resetFunction · 0.85
transform_checkerFunction · 0.85

Tested by

no test coverage detected