Return a config object with good defaults for testing.
()
| 129 | |
| 130 | |
| 131 | def default_config() -> Config: |
| 132 | """Return a config object with good defaults for testing.""" |
| 133 | config = Config() |
| 134 | config.TerminalInteractiveShell.colors = "nocolor" |
| 135 | config.TerminalTerminalInteractiveShell.term_title = (False,) |
| 136 | config.TerminalInteractiveShell.autocall = 0 |
| 137 | f = tempfile.NamedTemporaryFile(suffix="test_hist.sqlite", delete=False) |
| 138 | config.HistoryManager.hist_file = Path(f.name) |
| 139 | f.close() |
| 140 | config.HistoryManager.db_cache_size = 10000 |
| 141 | return config |
| 142 | |
| 143 | |
| 144 | def get_ipython_cmd(as_string: bool=False) -> List[str]: |
nothing calls this directly
no test coverage detected
searching dependent graphs…