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

Function test_logging_magic_quiet_from_arg

tests/test_magic.py:1834–1842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1832
1833
1834def test_logging_magic_quiet_from_arg():
1835 _ip.config.LoggingMagics.quiet = False
1836 lm = logging.LoggingMagics(shell=_ip)
1837 with TemporaryDirectory() as td:
1838 try:
1839 with tt.AssertNotPrints(re.compile("Activating.*")):
1840 lm.logstart("-q {}".format(os.path.join(td, "quiet_from_arg.log")))
1841 finally:
1842 _ip.logger.logstop()
1843
1844
1845def test_logging_magic_quiet_from_config():

Callers

nothing calls this directly

Calls 3

logstartMethod · 0.95
formatMethod · 0.45
logstopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…