from unittest.mock import MagicMock

import pytest

from briefcase.integrations.base import ToolCache
from briefcase.integrations.flatpak import Flatpak
from briefcase.integrations.subprocess import Subprocess


@pytest.fixture
def mock_tools(mock_tools) -> ToolCache:
    mock_tools.subprocess = MagicMock(spec_set=Subprocess)
    return mock_tools


@pytest.fixture
def flatpak(mock_tools):
    mock_tools.host_arch = "gothic"
    return Flatpak(tools=mock_tools)

eb2fa9acbd8a2ff23b749e87b9dedcf8ab5f97ff
<mask token>

<mask token>


@pytest.fixture
def mock_tools(mock_tools) ->ToolCache:
    mock_tools.subprocess = MagicMock(spec_set=Subprocess)
    return mock_tools


<mask token>

<mask token>


@pytest.fixture
def mock_tools(mock_tools) ->ToolCache:
    mock_tools.subprocess = MagicMock(spec_set=Subprocess)
    return mock_tools


@pytest.fixture
def flatpak(mock_tools):
    mock_tools.host_arch = 'gothic'
    return Flatpak(tools=mock_tools)

from unittest.mock import MagicMock
import pytest
from briefcase.integrations.base import ToolCache
from briefcase.integrations.flatpak import Flatpak
from briefcase.integrations.subprocess import Subprocess


@pytest.fixture
def mock_tools(mock_tools) ->ToolCache:
    mock_tools.subprocess = MagicMock(spec_set=Subprocess)
    return mock_tools


@pytest.fixture
def flatpak(mock_tools):
    mock_tools.host_arch = 'gothic'
    return Flatpak(tools=mock_tools)

from unittest.mock import MagicMock

import pytest

from briefcase.integrations.base import ToolCache
from briefcase.integrations.flatpak import Flatpak
from briefcase.integrations.subprocess import Subprocess


@pytest.fixture
def mock_tools(mock_tools) -> ToolCache:
    mock_tools.subprocess = MagicMock(spec_set=Subprocess)
    return mock_tools


@pytest.fixture
def flatpak(mock_tools):
    mock_tools.host_arch = "gothic"
    return Flatpak(tools=mock_tools)
