MCPcopy Create free account
hub / github.com/ipython/ipython / test_profile_create_ipython_dir

Function test_profile_create_ipython_dir

IPython/core/tests/test_profile.py:152–160  ·  view source on GitHub ↗

ipython profile create respects --ipython-dir

()

Source from the content-addressed store, hash-verified

150
151
152def 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

Callers

nothing calls this directly

Calls 1

getoutputFunction · 0.90

Tested by

no test coverage detected