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

Function test_classic_prompt

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

Source from the content-addressed store, hash-verified

334 tt.check_pairs(transform_and_reset(ipt.assign_from_magic), syntax['assign_magic'])
335
336def test_classic_prompt():
337 tt.check_pairs(transform_and_reset(ipt.classic_prompt), syntax['classic_prompt'])
338 for example in syntax_ml['classic_prompt']:
339 transform_checker(example, ipt.classic_prompt)
340 for example in syntax_ml['multiline_datastructure_prompt']:
341 transform_checker(example, ipt.classic_prompt)
342
343 # Check that we don't transform the second line if the first is obviously
344 # IPython syntax
345 transform_checker([
346 (u'%foo', '%foo'),
347 (u'>>> bar', '>>> bar'),
348 ], ipt.classic_prompt)
349
350
351def test_ipy_prompt():

Callers

nothing calls this directly

Calls 2

transform_and_resetFunction · 0.85
transform_checkerFunction · 0.85

Tested by

no test coverage detected