"""Base classes for JUnit XML test report collector unit tests."""

from tests.source_collectors.source_collector_test_case import SourceCollectorTestCase


class JUnitCollectorTestCase(SourceCollectorTestCase):
    """Base class for Junit collector unit tests."""

    SOURCE_TYPE = "junit"
    JUNIT_XML = """<testsuites>
    <testsuite timestamp="2009-12-19T17:58:59">
        <testcase name="tc1" classname="cn"/>
        <testcase name="tc2" classname="cn"/>
        <testcase name="tc3" classname="cn"><failure/></testcase>
        <testcase name="tc4" classname="cn"><error/></testcase>
        <testcase name="tc5" classname="cn"><skipped/></testcase>
    </testsuite></testsuites>"""
    JUNIT_XML_EMPTY_TEST_SUITES = '<testsuites name="Mocha Tests" time="0.0000" tests="0" failures="0"></testsuites>'
