from textwrap import dedent import pytest from ....utils import create_file # Windows' AppConfig requires attribute 'packaging_format' @pytest.fixture def first_app_templated(first_app_config, tmp_path): bundle_path = tmp_path / "base_path/build/first-app/windows/app" # Create the stub binary create_file(bundle_path / "src/Stub.exe", "Stub binary") # Create briefcase.tomml create_file( bundle_path / "briefcase.toml", dedent( """\ [paths] extras_path = "custom_extras" """ ), ) return first_app_config