MCPcopy Index your code
hub / github.com/ipython/ipython / test_profile_create_ipython_dir

Function test_profile_create_ipython_dir

tests/test_profile.py:145–162  ·  view source on GitHub ↗

ipython profile create respects --ipython-dir

()

Source from the content-addressed store, hash-verified

143
144
145def 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()

Callers

nothing calls this directly

Calls 1

getoutputFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…