MCPcopy Index your code
hub / github.com/bpython/bpython / setup_config

Function setup_config

bpython/test/test_curtsies_repl.py:31–37  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

29
30
31def setup_config(conf):
32 config_struct = config.Config(TEST_CONFIG)
33 for key, value in conf.items():
34 if not hasattr(config_struct, key):
35 raise ValueError(f"{key!r} is not a valid config attribute")
36 setattr(config_struct, key, value)
37 return config_struct
38
39
40class TestCurtsiesRepl(TestCase):

Callers 1

create_replFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected