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

Function test_multiple_magics

tests/test_magic.py:1659–1667  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1657
1658
1659def test_multiple_magics():
1660 ip = get_ipython()
1661 foo1 = FooFoo(ip)
1662 foo2 = FooFoo(ip)
1663 mm = ip.magics_manager
1664 mm.register(foo1)
1665 assert mm.magics["line"]["foo"].__self__ is foo1
1666 mm.register(foo2)
1667 assert mm.magics["line"]["foo"].__self__ is foo2
1668
1669
1670def test_alias_magic():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
FooFooClass · 0.85
registerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…