Test OSMagics.cd_force_quiet option
()
| 637 | |
| 638 | |
| 639 | def 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 | |
| 656 | def test_xmode(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…