Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Jan 29, 2025
1 parent be530c1 commit 2b9358c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions junitparser/xunit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""

import itertools
from typing import Iterator, List, Type, TypeVar
from typing import List, Type, TypeVar
from . import junitparser


Expand Down Expand Up @@ -118,7 +118,8 @@ def _interim_results(self, _type: Type[R]) -> List[R]:
@property
def interim_result(self) -> List[InterimResult]:
"""
A list of interim results: :class:`RerunFailure`, :class:`RerunError`, :class:`FlakyFailure`, or :class:`FlakyError` objects.
A list of interim results: :class:`RerunFailure`, :class:`RerunError`,
:class:`FlakyFailure`, or :class:`FlakyError` objects.
This is complementary to the result property returning final results.
"""
return self._interim_results(InterimResult)
Expand Down
24 changes: 12 additions & 12 deletions tests/test_xunit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def test_case_rerun_fromstring(self):
assert isinstance(case.result[0], Failure)
assert case.system_out == "System out"
assert case.system_err == "System err"
assert case.is_passed == False
assert case.is_failure == True
assert case.is_error == False
assert case.is_skipped == False
assert case.is_rerun == True
assert case.is_flaky == False
assert case.is_passed is False
assert case.is_failure is True
assert case.is_error is False
assert case.is_skipped is False
assert case.is_rerun is True
assert case.is_flaky is False

interim_results = case.interim_result
assert len(interim_results) == 3
Expand Down Expand Up @@ -81,12 +81,12 @@ def test_case_flaky_fromstring(self):
assert len(case.result) == 0
assert case.system_out == "System out"
assert case.system_err == "System err"
assert case.is_passed == True
assert case.is_failure == False
assert case.is_error == False
assert case.is_skipped == False
assert case.is_rerun == False
assert case.is_flaky == True
assert case.is_passed is True
assert case.is_failure is False
assert case.is_error is False
assert case.is_skipped is False
assert case.is_rerun is False
assert case.is_flaky is True

interim_results = case.interim_result
assert len(interim_results) == 3
Expand Down

0 comments on commit 2b9358c

Please sign in to comment.