Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt committed Oct 15, 2024
1 parent 9ea4de3 commit 1b34b89
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/models/xctests/test_xcresulttool.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
("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),
(Version("0"), True),
(Version("1"), True),
(Version("23020.9"), True),
(Version("23021"), False),
(Version("23021.1"), False),
(Version("23022"), False),
(Version("33022"), False),
),
)
def test_requires_legacy_flag(xcresulttool_version: Optional[Version], expected_result: bool):
def test_is_legacy(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()
assert expected_result is XcResultTool.is_legacy()

0 comments on commit 1b34b89

Please sign in to comment.