MCPcopy Create free account
hub / github.com/tox-dev/platformdirs / test_android_folder_not_found

Function test_android_folder_not_found

tests/test_android.py:158–165  ·  view source on GitHub ↗
(mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

156
157
158def test_android_folder_not_found(mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch) -> None:
159 mocker.patch.dict(sys.modules, {"jnius": MagicMock(autoclass=MagicMock(side_effect=ModuleNotFoundError))})
160
161 from platformdirs.android import _android_folder # noqa: PLC0415
162
163 _android_folder.cache_clear()
164 monkeypatch.setattr(sys, "path", [])
165 assert _android_folder() is None
166
167
168@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

_android_folderFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…