test_get_xdg_dir_3, check xdg_dir not used on non-posix systems
(monkeypatch)
| 250 | |
| 251 | @with_environment |
| 252 | def test_get_xdg_dir_3(monkeypatch): |
| 253 | """test_get_xdg_dir_3, check xdg_dir not used on non-posix systems""" |
| 254 | monkeypatch.setattr(path, "get_home_dir", lambda: HOME_TEST_DIR) |
| 255 | monkeypatch.setattr(os, "name", "nt") |
| 256 | monkeypatch.setattr(sys, "platform", "win32") |
| 257 | env.pop("IPYTHON_DIR", None) |
| 258 | env.pop("IPYTHONDIR", None) |
| 259 | env.pop("XDG_CONFIG_HOME", None) |
| 260 | cfgdir = os.path.join(path.get_home_dir(), ".config") |
| 261 | os.makedirs(cfgdir, exist_ok=True) |
| 262 | |
| 263 | assert path.get_xdg_dir() is None |
| 264 | |
| 265 | |
| 266 | def test_filefind(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…