Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/allure_commons/model2.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 from attr import attrs, attrib | |
2 from attr import Factory | |
3 | |
4 | |
5 TEST_GROUP_PATTERN = "{prefix}-container.json" | |
6 TEST_CASE_PATTERN = "{prefix}-result.json" | |
7 ATTACHMENT_PATTERN = '{prefix}-attachment.{ext}' | |
8 INDENT = 4 | |
9 | |
10 | |
11 @attrs | |
12 class TestResultContainer(object): | |
13 file_pattern = TEST_GROUP_PATTERN | |
14 | |
15 uuid = attrib(default=None) | |
16 name = attrib(default=None) | |
17 children = attrib(default=Factory(list)) | |
18 description = attrib(default=None) | |
19 descriptionHtml = attrib(default=None) | |
20 befores = attrib(default=Factory(list)) | |
21 afters = attrib(default=Factory(list)) | |
22 links = attrib(default=Factory(list)) | |
23 start = attrib(default=None) | |
24 stop = attrib(default=None) | |
25 | |
26 | |
27 @attrs | |
28 class ExecutableItem(object): | |
29 name = attrib(default=None) | |
30 status = attrib(default=None) | |
31 statusDetails = attrib(default=None) | |
32 stage = attrib(default=None) | |
33 description = attrib(default=None) | |
34 descriptionHtml = attrib(default=None) | |
35 steps = attrib(default=Factory(list)) | |
36 attachments = attrib(default=Factory(list)) | |
37 parameters = attrib(default=Factory(list)) | |
38 start = attrib(default=None) | |
39 stop = attrib(default=None) | |
40 | |
41 | |
42 @attrs | |
43 class TestResult(ExecutableItem): | |
44 file_pattern = TEST_CASE_PATTERN | |
45 | |
46 uuid = attrib(default=None) | |
47 historyId = attrib(default=None) | |
48 testCaseId = attrib(default=None) | |
49 fullName = attrib(default=None) | |
50 labels = attrib(default=Factory(list)) | |
51 links = attrib(default=Factory(list)) | |
52 | |
53 | |
54 @attrs | |
55 class TestStepResult(ExecutableItem): | |
56 id = attrib(default=None) | |
57 | |
58 | |
59 @attrs | |
60 class TestBeforeResult(ExecutableItem): | |
61 pass | |
62 | |
63 | |
64 @attrs | |
65 class TestAfterResult(ExecutableItem): | |
66 pass | |
67 | |
68 | |
69 @attrs | |
70 class Parameter(object): | |
71 name = attrib(default=None) | |
72 value = attrib(default=None) | |
73 | |
74 | |
75 @attrs | |
76 class Label(object): | |
77 name = attrib(default=None) | |
78 value = attrib(default=None) | |
79 | |
80 | |
81 @attrs | |
82 class Link(object): | |
83 type = attrib(default=None) | |
84 url = attrib(default=None) | |
85 name = attrib(default=None) | |
86 | |
87 | |
88 @attrs | |
89 class StatusDetails(object): | |
90 known = attrib(default=None) | |
91 flaky = attrib(default=None) | |
92 message = attrib(default=None) | |
93 trace = attrib(default=None) | |
94 | |
95 | |
96 @attrs | |
97 class Attachment(object): | |
98 name = attrib(default=None) | |
99 source = attrib(default=None) | |
100 type = attrib(default=None) | |
101 | |
102 | |
103 class Status(object): | |
104 FAILED = 'failed' | |
105 BROKEN = 'broken' | |
106 PASSED = 'passed' | |
107 SKIPPED = 'skipped' | |
108 UNKNOWN = 'unknown' |