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

Function test_cd_force_quiet

tests/test_magic.py:639–653  ·  view source on GitHub ↗

Test OSMagics.cd_force_quiet option

()

Source from the content-addressed store, hash-verified

637
638
639def test_cd_force_quiet():
640 """Test OSMagics.cd_force_quiet option"""
641 _ip.config.OSMagics.cd_force_quiet = True
642 osmagics = osm.OSMagics(shell=_ip)
643
644 startdir = os.getcwd()
645 ipdir = os.path.realpath(_ip.ipython_dir)
646
647 try:
648 with tt.AssertNotPrints(ipdir):
649 osmagics.cd('"%s"' % ipdir)
650 with tt.AssertNotPrints(startdir):
651 osmagics.cd("-")
652 finally:
653 os.chdir(startdir)
654
655
656def test_xmode():

Callers

nothing calls this directly

Calls 1

cdMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…