Check that alias correctly counts args, excluding those commented out
()
| 56 | |
| 57 | |
| 58 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…