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

Function test_alias_args_commented_nargs

tests/test_alias.py:58–68  ·  view source on GitHub ↗

Check that alias correctly counts args, excluding those commented out

()

Source from the content-addressed store, hash-verified

56
57
58def test_alias_args_commented_nargs():
59 """Check that alias correctly counts args, excluding those commented out"""
60 am = _ip.alias_manager
61 alias_name = "comargcount"
62 cmd = "echo this is %%s a commented out arg and this is not %s"
63
64 am.define_alias(alias_name, cmd)
65 assert am.is_alias(alias_name)
66
67 thealias = am.get_alias(alias_name)
68 assert thealias.nargs == 1

Callers

nothing calls this directly

Calls 3

define_aliasMethod · 0.80
is_aliasMethod · 0.80
get_aliasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…