(conf)
| 9 | |
| 10 | |
| 11 | def setup_config(conf): |
| 12 | config_struct = config.Config(TEST_CONFIG) |
| 13 | for key, value in conf.items(): |
| 14 | if not hasattr(config_struct, key): |
| 15 | raise ValueError(f"{key!r} is not a valid config attribute") |
| 16 | setattr(config_struct, key, value) |
| 17 | return config_struct |
| 18 | |
| 19 | |
| 20 | def create_repl(brackets_enabled=False, **kwargs): |