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

Function test_alias_args_error

tests/test_alias.py:35–42  ·  view source on GitHub ↗

Error expanding with wrong number of arguments

()

Source from the content-addressed store, hash-verified

33
34
35def test_alias_args_error():
36 """Error expanding with wrong number of arguments"""
37 _ip.alias_manager.define_alias("parts", "echo first %s second %s")
38 # capture stderr:
39 with capture_output() as cap:
40 _ip.run_cell("parts 1")
41
42 assert cap.stderr.split(":")[0] == "UsageError"
43
44
45def test_alias_args_commented():

Callers

nothing calls this directly

Calls 3

capture_outputClass · 0.90
define_aliasMethod · 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…