Return a config object with good defaults for testing.
()
| 136 | |
| 137 | |
| 138 | def default_config(): |
| 139 | """Return a config object with good defaults for testing.""" |
| 140 | config = Config() |
| 141 | config.TerminalInteractiveShell.colors = 'NoColor' |
| 142 | config.TerminalTerminalInteractiveShell.term_title = False, |
| 143 | config.TerminalInteractiveShell.autocall = 0 |
| 144 | f = tempfile.NamedTemporaryFile(suffix=u'test_hist.sqlite', delete=False) |
| 145 | config.HistoryManager.hist_file = f.name |
| 146 | f.close() |
| 147 | config.HistoryManager.db_cache_size = 10000 |
| 148 | return config |
| 149 | |
| 150 | |
| 151 | def get_ipython_cmd(as_string=False): |