Check that alias correctly ignores 'commented out' args
()
| 43 | |
| 44 | |
| 45 | def 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 | |
| 58 | def test_alias_args_commented_nargs(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…