Skip to content

Commit

Permalink
Exclude TestCase and TestSuite from pytest discovery (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: Sansom, Kurt <ksansom@abiomed.com>
  • Loading branch information
kurtsansom and Sansom, Kurt committed Feb 21, 2024
1 parent f433768 commit 614cf80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions junitparser/junitparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class TestCase(Element):
name = Attr()
classname = Attr()
time = FloatAttr()
__test__ = False

def __init__(self, name: str = None, classname: str = None, time: float = None):
super().__init__(self._tag)
Expand Down Expand Up @@ -490,6 +491,7 @@ class TestSuite(Element):
failures = IntAttr()
errors = IntAttr()
skipped = IntAttr()
__test__ = False

def __init__(self, name=None):
super().__init__(self._tag)
Expand Down

0 comments on commit 614cf80

Please sign in to comment.