| 1 |
from textwrap import dedent |
| 2 |
|
| 3 |
import pytest |
| 4 |
|
| 5 |
from ....utils import create_file |
| 6 |
|
| 7 |
|
| 8 |
# Windows' AppConfig requires attribute 'packaging_format' |
| 9 |
@pytest.fixture |
| 10 |
def first_app_templated(first_app_config, tmp_path): |
| 11 |
bundle_path = tmp_path / "base_path/build/first-app/windows/app" |
| 12 |
|
| 13 |
# Create the stub binary |
| 14 |
create_file(bundle_path / "src/Stub.exe", "Stub binary") |
| 15 |
|
| 16 |
# Create briefcase.tomml |
| 17 |
create_file( |
| 18 |
bundle_path / "briefcase.toml", |
| 19 |
dedent( |
| 20 |
"""\ |
| 21 |
[paths] |
| 22 |
extras_path = "custom_extras" |
| 23 |
""" |
| 24 |
), |
| 25 |
) |
| 26 |
|
| 27 |
return first_app_config |