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

Function test_get_ipython_dir_7

IPython/core/tests/test_paths.py:152–158  ·  view source on GitHub ↗

test_get_ipython_dir_7, test home directory expansion on IPYTHONDIR

()

Source from the content-addressed store, hash-verified

150 nt.assert_equal(len(w), 0)
151
152def test_get_ipython_dir_7():
153 """test_get_ipython_dir_7, test home directory expansion on IPYTHONDIR"""
154 home_dir = os.path.normpath(os.path.expanduser('~'))
155 with modified_env({'IPYTHONDIR': os.path.join('~', 'somewhere')}), \
156 patch.object(paths, '_writable_dir', return_value=True):
157 ipdir = paths.get_ipython_dir()
158 nt.assert_equal(ipdir, os.path.join(home_dir, 'somewhere'))
159
160@skip_win32
161def test_get_ipython_dir_8():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected