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

Function test_get_ipython_dir_1

IPython/core/tests/test_paths.py:48–55  ·  view source on GitHub ↗

test_get_ipython_dir_1, Testcase to see if we can call get_ipython_dir without Exceptions.

()

Source from the content-addressed store, hash-verified

46
47
48def test_get_ipython_dir_1():
49 """test_get_ipython_dir_1, Testcase to see if we can call get_ipython_dir without Exceptions."""
50 env_ipdir = os.path.join("someplace", ".ipython")
51 with patch.object(paths, '_writable_dir', return_value=True), \
52 modified_env({'IPYTHONDIR': env_ipdir}):
53 ipdir = paths.get_ipython_dir()
54
55 nt.assert_equal(ipdir, env_ipdir)
56
57def test_get_ipython_dir_2():
58 """test_get_ipython_dir_2, Testcase to see if we can call get_ipython_dir without Exceptions."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected