Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/allure_commons/_hooks.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 pluggy import HookspecMarker, HookimplMarker | |
2 | |
3 hookspec = HookspecMarker("allure") | |
4 hookimpl = HookimplMarker("allure") | |
5 | |
6 | |
7 class AllureUserHooks(object): | |
8 | |
9 @hookspec | |
10 def decorate_as_title(self, test_title): | |
11 """ title """ | |
12 | |
13 @hookspec | |
14 def add_title(self, test_title): | |
15 """ title """ | |
16 | |
17 @hookspec | |
18 def decorate_as_description(self, test_description): | |
19 """ description """ | |
20 | |
21 @hookspec | |
22 def add_description(self, test_description): | |
23 """ description """ | |
24 | |
25 @hookspec | |
26 def decorate_as_description_html(self, test_description_html): | |
27 """ description html""" | |
28 | |
29 @hookspec | |
30 def add_description_html(self, test_description_html): | |
31 """ description html""" | |
32 | |
33 @hookspec | |
34 def decorate_as_label(self, label_type, labels): | |
35 """ label """ | |
36 | |
37 @hookspec | |
38 def add_label(self, label_type, labels): | |
39 """ label """ | |
40 | |
41 @hookspec | |
42 def decorate_as_link(self, url, link_type, name): | |
43 """ url """ | |
44 | |
45 @hookspec | |
46 def add_link(self, url, link_type, name): | |
47 """ url """ | |
48 | |
49 @hookspec | |
50 def start_step(self, uuid, title, params): | |
51 """ step """ | |
52 | |
53 @hookspec | |
54 def stop_step(self, uuid, exc_type, exc_val, exc_tb): | |
55 """ step """ | |
56 | |
57 @hookspec | |
58 def attach_data(self, body, name, attachment_type, extension): | |
59 """ attach data """ | |
60 | |
61 @hookspec | |
62 def attach_file(self, source, name, attachment_type, extension): | |
63 """ attach file """ | |
64 | |
65 | |
66 class AllureDeveloperHooks(object): | |
67 | |
68 @hookspec | |
69 def start_fixture(self, parent_uuid, uuid, name, parameters): | |
70 """ start fixture""" | |
71 | |
72 @hookspec | |
73 def stop_fixture(self, parent_uuid, uuid, name, exc_type, exc_val, exc_tb): | |
74 """ stop fixture """ | |
75 | |
76 @hookspec | |
77 def start_test(self, parent_uuid, uuid, name, parameters, context): | |
78 """ start test""" | |
79 | |
80 @hookspec | |
81 def stop_test(self, parent_uuid, uuid, name, context, exc_type, exc_val, exc_tb): | |
82 """ stop test """ | |
83 | |
84 @hookspec | |
85 def report_result(self, result): | |
86 """ reporting """ | |
87 | |
88 @hookspec | |
89 def report_container(self, container): | |
90 """ reporting """ | |
91 | |
92 @hookspec | |
93 def report_attached_file(self, source, file_name): | |
94 """ reporting """ | |
95 | |
96 @hookspec | |
97 def report_attached_data(self, body, file_name): | |
98 """ reporting """ |