MCPcopy Index your code
hub / github.com/RustPython/RustPython / apply_config

Method apply_config

Lib/test/test_logging.py:1572–1574  ·  view source on GitHub ↗
(self, conf, **kwargs)

Source from the content-addressed store, hash-verified

1570 """
1571
1572 def apply_config(self, conf, **kwargs):
1573 file = io.StringIO(textwrap.dedent(conf))
1574 logging.config.fileConfig(file, encoding="utf-8", **kwargs)
1575
1576 def test_config0_ok(self):
1577 # A simple config file which overrides the default settings.

Callers 8

test_config0_okMethod · 0.95
test_config1_okMethod · 0.95
test_config4_okMethod · 0.95
test_config7_okMethod · 0.95
test_config8_okMethod · 0.95
test_config9_okMethod · 0.95
test_logger_disablingMethod · 0.95

Calls 1

dedentMethod · 0.80

Tested by

no test coverage detected