ipython profile create respects --ipython-dir
()
| 143 | |
| 144 | |
| 145 | def test_profile_create_ipython_dir(): |
| 146 | """ipython profile create respects --ipython-dir""" |
| 147 | with TemporaryDirectory() as td: |
| 148 | getoutput( |
| 149 | [ |
| 150 | sys.executable, |
| 151 | "-m", |
| 152 | "IPython", |
| 153 | "profile", |
| 154 | "create", |
| 155 | "foo", |
| 156 | "--ipython-dir=%s" % td, |
| 157 | ] |
| 158 | ) |
| 159 | profile_dir = Path(td) / "profile_foo" |
| 160 | assert Path(profile_dir).exists() |
| 161 | ipython_config = profile_dir / "ipython_config.py" |
| 162 | assert Path(ipython_config).exists() |
nothing calls this directly
no test coverage detected
searching dependent graphs…