Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt committed Oct 15, 2024
1 parent cfc033a commit 4cab05b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/models/xctests/converter/test_xcode_16_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unittest import mock

import pytest
from codemagic.models.junit import Failure
from codemagic.models.junit import Error
from codemagic.models.junit import Property
from codemagic.models.junit import Skipped
from codemagic.models.junit import TestCase
Expand Down Expand Up @@ -276,14 +276,14 @@ def test_converter(mock_datetime, expected_properties):
name="testExceptionExample()",
status="Failed",
time=0.2,
failure=Failure(message='banaanTests.swift:50: failed: caught error: "badInput"', type="Error"),
error=Error(message='banaanTests.swift:50: failed: caught error: "badInput"', type="Error"),
)
assert ts.testcases[3] == TestCase(
classname="banaanTests",
name="testFailExample()",
status="Failed",
time=0.002,
failure=Failure(message="banaanTests.swift:44: failed - This won't make the cut", type="Failure"),
error=Error(message="banaanTests.swift:44: failed - This won't make the cut", type="Failure"),
)
assert ts.testcases[4] == TestCase(
classname="banaanTests",
Expand Down Expand Up @@ -323,5 +323,5 @@ def test_converter(mock_datetime, expected_properties):
name="testUIFailExample()",
status="Failed",
time=3.0,
failure=Failure(message="banaanUITests.swift:40: failed - Bad UI", type="Failure"),
error=Error(message="banaanUITests.swift:40: failed - Bad UI", type="Failure"),
)

0 comments on commit 4cab05b

Please sign in to comment.