test_get_xdg_dir_1, check nonexistent xdg_dir
(monkeypatch)
| 222 | |
| 223 | @with_environment |
| 224 | def test_get_xdg_dir_1(monkeypatch): |
| 225 | """test_get_xdg_dir_1, check nonexistent xdg_dir""" |
| 226 | monkeypatch.setattr(path, "get_home_dir", lambda: HOME_TEST_DIR) |
| 227 | monkeypatch.setattr(os, "name", "posix") |
| 228 | monkeypatch.setattr(sys, "platform", "linux2") |
| 229 | env.pop("IPYTHON_DIR", None) |
| 230 | env.pop("IPYTHONDIR", None) |
| 231 | env.pop("XDG_CONFIG_HOME", None) |
| 232 | assert path.get_xdg_dir() is None |
| 233 | |
| 234 | |
| 235 | @with_environment |
nothing calls this directly
no test coverage detected
searching dependent graphs…