(magic)
| 1210 | |
| 1211 | |
| 1212 | def check_ident(magic): |
| 1213 | # Manually called, we get the result |
| 1214 | out = _ip.run_cell_magic(magic, "a", "b") |
| 1215 | assert out == ("a", "b") |
| 1216 | # Via run_cell, it goes into the user's namespace via displayhook |
| 1217 | _ip.run_cell("%%" + magic + " c\nd\n") |
| 1218 | assert _ip.user_ns["_"] == ("c", "d\n") |
| 1219 | |
| 1220 | |
| 1221 | def test_cell_magic_func_deco(underscore_not_in_builtins): |
no test coverage detected
searching dependent graphs…