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

Function test_alias_args_commented

tests/test_alias.py:45–55  ·  view source on GitHub ↗

Check that alias correctly ignores 'commented out' args

()

Source from the content-addressed store, hash-verified

43
44
45def test_alias_args_commented():
46 """Check that alias correctly ignores 'commented out' args"""
47 _ip.run_line_magic("alias", "commentarg echo this is %%s a commented out arg")
48
49 with capture_output() as cap:
50 _ip.run_cell("commentarg")
51
52 # strip() is for pytest compat; testing via iptest patch IPython shell
53 # in testing.globalipapp and replace the system call which messed up the
54 # \r\n
55 assert cap.stdout.strip() == "this is %s a commented out arg"
56
57
58def test_alias_args_commented_nargs():

Callers

nothing calls this directly

Calls 3

capture_outputClass · 0.90
run_line_magicMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…