Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/allure_commons/types.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 enum import Enum | |
2 | |
3 ALLURE_UNIQUE_LABELS = ['severity', 'thread', 'host'] | |
4 | |
5 | |
6 class Severity(str, Enum): | |
7 BLOCKER = 'blocker' | |
8 CRITICAL = 'critical' | |
9 NORMAL = 'normal' | |
10 MINOR = 'minor' | |
11 TRIVIAL = 'trivial' | |
12 | |
13 | |
14 class LinkType(object): | |
15 LINK = 'link' | |
16 ISSUE = 'issue' | |
17 TEST_CASE = 'test_case' | |
18 | |
19 | |
20 class LabelType(str): | |
21 EPIC = 'epic' | |
22 FEATURE = 'feature' | |
23 STORY = 'story' | |
24 PARENT_SUITE = 'parentSuite' | |
25 SUITE = 'suite' | |
26 SUB_SUITE = 'subSuite' | |
27 SEVERITY = 'severity' | |
28 THREAD = 'thread' | |
29 HOST = 'host' | |
30 TAG = 'tag' | |
31 ID = 'as_id' | |
32 FRAMEWORK = 'framework' | |
33 LANGUAGE = 'language' | |
34 | |
35 | |
36 class AttachmentType(Enum): | |
37 | |
38 def __init__(self, mime_type, extension): | |
39 self.mime_type = mime_type | |
40 self.extension = extension | |
41 | |
42 TEXT = ("text/plain", "txt") | |
43 CSV = ("text/csv", "csv") | |
44 TSV = ("text/tab-separated-values", "tsv") | |
45 URI_LIST = ("text/uri-list", "uri") | |
46 | |
47 HTML = ("text/html", "html") | |
48 XML = ("application/xml", "xml") | |
49 JSON = ("application/json", "json") | |
50 YAML = ("application/yaml", "yaml") | |
51 PCAP = ("application/vnd.tcpdump.pcap", "pcap") | |
52 | |
53 PNG = ("image/png", "png") | |
54 JPG = ("image/jpg", "jpg") | |
55 SVG = ("image/svg-xml", "svg") | |
56 GIF = ("image/gif", "gif") | |
57 BMP = ("image/bmp", "bmp") | |
58 TIFF = ("image/tiff", "tiff") | |
59 | |
60 MP4 = ("video/mp4", "mp4") | |
61 OGG = ("video/ogg", "ogg") | |
62 WEBM = ("video/webm", "webm") | |
63 | |
64 PDF = ("application/pdf", "pdf") |