Skip to content

Commit

Permalink
Change casing once again
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed May 14, 2024
1 parent f4d9c9c commit 4737807
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def test_android_folder_from_p4a(mocker: MockerFixture, monkeypatch: pytest.Monk

_android_folder.cache_clear()

abspath = MagicMock(return_value="/A") # pragma: no cover
pfile = MagicMock(getAbsolutePath=abspath) # pragma: no cover
fdir = MagicMock(getParentFile=MagicMock(return_value=pfile)) # pragma: no cover
appc = MagicMock(getFilesDir=MagicMock(return_value=fdir)) # pragma: no cover
act = MagicMock(getApplicationContext=MagicMock(return_value=appc)) # pragma: no cover
mocker.patch.dict(sys.modules, {"android": MagicMock(mActivity=act)}) # pragma: no cover
get_absolute_path = MagicMock(return_value="/A")
get_parent_file = MagicMock(getAbsolutePath=get_absolute_path)
get_files_dir = MagicMock(getParentFile=MagicMock(return_value=get_parent_file))
get_application_context = MagicMock(getFilesDir=MagicMock(return_value=get_files_dir))
m_activity = MagicMock(getApplicationContext=MagicMock(return_value=get_application_context))
mocker.patch.dict(sys.modules, {"android": MagicMock(mActivity=m_activity)})

result = _android_folder()
assert result == "/A"
Expand Down

0 comments on commit 4737807

Please sign in to comment.