(mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch)
| 156 | |
| 157 | |
| 158 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…