支持 App Store 送检任务按需排除 IPA 符号文件
This commit is contained in:
@@ -3,7 +3,7 @@ import plistlib
|
||||
|
||||
import pytest
|
||||
|
||||
from backend.services.project_patcher import ProjectPatchError, apply_project_config
|
||||
from backend.services.project_patcher import ProjectPatchError, _write_export_options, apply_project_config
|
||||
|
||||
|
||||
def test_apply_project_config_without_branch_autopacking(tmp_path):
|
||||
@@ -206,3 +206,16 @@ def test_readoor_definition_has_dict_server_fields():
|
||||
assert keys == ["DICT_SERVERURL", "DICT_SERVERHTTPSURL", "DICT_UCSERVERURL",
|
||||
"DICT_RECORDSERVERURL", "DICT_LOGSERVERURL"]
|
||||
assert get_definition("other", {"patcher": "generic"})["server_fields"] == []
|
||||
|
||||
|
||||
@pytest.mark.parametrize("no_cert", [False, True])
|
||||
@pytest.mark.parametrize("build_type,exclude,expected", [
|
||||
("App_Store", True, False),
|
||||
("App_Store", False, None),
|
||||
("Ad_Hoc", True, None),
|
||||
])
|
||||
def test_export_symbols_option(tmp_path, no_cert, build_type, exclude, expected):
|
||||
config = {"NO_CERT": no_cert, "BUILD_TYPE": build_type, "EXCLUDE_SYMBOLS": exclude}
|
||||
_write_export_options(tmp_path, config)
|
||||
options = plistlib.loads((tmp_path / "exportOptions.plist").read_bytes())
|
||||
assert options.get("uploadSymbols") is expected
|
||||
|
||||
Reference in New Issue
Block a user