-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix using xcresulttool on Xcode 16.0 beta 3+ (#424)
- Loading branch information
Showing
5 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__title__ = "codemagic-cli-tools" | ||
__description__ = "CLI tools used in Codemagic builds" | ||
__version__ = "0.53.3.dev" | ||
__version__ = "0.53.4.dev" | ||
__url__ = "https://github.com/codemagic-ci-cd/cli-tools" | ||
__licence__ = "GNU General Public License v3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Optional | ||
from unittest import mock | ||
|
||
import pytest | ||
from codemagic.models.xctests import XcResultTool | ||
from packaging.version import Version | ||
|
||
|
||
@pytest.mark.parametrize( | ||
("xcresulttool_version", "expected_result"), | ||
( | ||
(None, False), | ||
(Version("0"), False), | ||
(Version("1"), False), | ||
(Version("23020.9"), False), | ||
(Version("23021"), True), | ||
(Version("23021.1"), True), | ||
(Version("23022"), True), | ||
(Version("33022"), True), | ||
), | ||
) | ||
def test_requires_legacy_flag(xcresulttool_version: Optional[Version], expected_result: bool): | ||
with mock.patch.object(XcResultTool, "get_tool_version", new=mock.MagicMock(return_value=xcresulttool_version)): | ||
assert expected_result is XcResultTool._requires_legacy_flag() |