ipython profile create respects --ipython-dir
()
| 150 | |
| 151 | |
| 152 | def test_profile_create_ipython_dir(): |
| 153 | """ipython profile create respects --ipython-dir""" |
| 154 | with TemporaryDirectory() as td: |
| 155 | getoutput([sys.executable, '-m', 'IPython', 'profile', 'create', |
| 156 | 'foo', '--ipython-dir=%s' % td]) |
| 157 | profile_dir = os.path.join(td, 'profile_foo') |
| 158 | assert os.path.exists(profile_dir) |
| 159 | ipython_config = os.path.join(profile_dir, 'ipython_config.py') |
| 160 | assert os.path.exists(ipython_config) |
| 161 |
nothing calls this directly
no test coverage detected