1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
import pytest
from ....utils import create_file, create_plist_file
@pytest.fixture
def first_app_generated(first_app_config, tmp_path):
# Create the briefcase.toml file
create_file(
tmp_path
/ "base_path"
/ "build"
/ "first-app"
/ "ios"
/ "xcode"
/ "briefcase.toml",
"\n".join(
[
"[paths]",
'app_packages_path="app_packages"',
'support_path="Support"',
'info_plist_path="Info.plist"',
"",
],
),
)
create_plist_file(
tmp_path / "base_path/build/first-app/ios/xcode/Info.plist",
{
"MainModule": "first_app",
},
)
# Create the support package VERSIONS file
# with a deliberately weird min iOS version
create_file(
tmp_path / "base_path/build/first-app/ios/xcode/Support/VERSIONS",
"\n".join(
[
"Python version: 3.10.15",
"Build: b11",
"Min iOS version: 14.2",
"---------------------",
"BZip2: 1.0.8-1",
"libFFI: 3.4.6-1",
"OpenSSL: 3.0.15-1",
"XZ: 5.6.2-1",
"",
]
),
)
return first_app_config
|