Error expanding with wrong number of arguments
()
| 33 | |
| 34 | |
| 35 | def 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 | |
| 45 | def test_alias_args_commented(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…