()
| 1843 | |
| 1844 | |
| 1845 | def 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 | |
| 1856 | def test_logging_magic_not_quiet(): |