File: junit_xml.pyi

package info (click to toggle)
cwltest 2.5.20241122133319-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 800 kB
  • sloc: python: 2,700; makefile: 124; sh: 89
file content (93 lines) | stat: -rw-r--r-- 2,521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Stubs for junit_xml (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import IO, Any, List, Optional

unichr = chr

class TestSuite:
    name: Any = ...
    test_cases: Any = ...
    timestamp: Any = ...
    hostname: Any = ...
    id: Any = ...
    package: Any = ...
    file: Any = ...
    log: Any = ...
    url: Any = ...
    stdout: Any = ...
    stderr: Any = ...
    properties: Any = ...
    def __init__(
        self,
        name: str,
        test_cases: Optional[Any] = ...,
        hostname: Optional[Any] = ...,
        id: Optional[Any] = ...,
        package: Optional[Any] = ...,
        timestamp: Optional[Any] = ...,
        properties: Optional[Any] = ...,
        file: Optional[Any] = ...,
        log: Optional[Any] = ...,
        url: Optional[Any] = ...,
        stdout: Optional[Any] = ...,
        stderr: Optional[Any] = ...,
    ) -> None: ...

class TestCase:
    name: Any = ...
    assertions: Any = ...
    elapsed_sec: Any = ...
    timestamp: Any = ...
    classname: Any = ...
    status: Any = ...
    category: Any = ...
    file: Any = ...
    line: Any = ...
    log: Any = ...
    url: Any = ...
    stdout: Any = ...
    stderr: Any = ...
    is_enabled: bool = ...
    error_message: Any = ...
    error_output: Any = ...
    error_type: Any = ...
    failure_message: Any = ...
    failure_output: Any = ...
    failure_type: Any = ...
    skipped_message: Any = ...
    skipped_output: Any = ...
    def __init__(
        self,
        name: str,
        classname: Optional[Any] = ...,
        elapsed_sec: Optional[Any] = ...,
        stdout: Optional[Any] = ...,
        stderr: Optional[Any] = ...,
        assertions: Optional[Any] = ...,
        timestamp: Optional[Any] = ...,
        status: Optional[Any] = ...,
        category: Optional[Any] = ...,
        file: Optional[Any] = ...,
        line: Optional[Any] = ...,
        log: Optional[Any] = ...,
        group: Optional[Any] = ...,
        url: Optional[Any] = ...,
    ) -> None: ...
    def add_failure_info(
        self,
        message: Optional[Any] = ...,
        output: Optional[Any] = ...,
        failure_type: Optional[Any] = ...,
    ) -> None: ...
    def add_skipped_info(
        self, message: Optional[Any] = ..., output: Optional[Any] = ...
    ) -> None: ...

def to_xml_report_file(
    file_descriptor: IO[Any],
    test_suites: List[TestSuite],
    prettyprint: bool = True,
    encoding: Optional[str] = None,
) -> None: ...