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

Function test_logging_magic_quiet_from_config

tests/test_magic.py:1845–1853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1843
1844
1845def test_logging_magic_quiet_from_config():
1846 _ip.config.LoggingMagics.quiet = True
1847 lm = logging.LoggingMagics(shell=_ip)
1848 with TemporaryDirectory() as td:
1849 try:
1850 with tt.AssertNotPrints(re.compile("Activating.*")):
1851 lm.logstart(os.path.join(td, "quiet_from_config.log"))
1852 finally:
1853 _ip.logger.logstop()
1854
1855
1856def test_logging_magic_not_quiet():

Callers

nothing calls this directly

Calls 2

logstartMethod · 0.95
logstopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…