forked from allure-framework/allure-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel.py
More file actions
32 lines (20 loc) · 667 Bytes
/
label.py
File metadata and controls
32 lines (20 loc) · 667 Bytes
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
from hamcrest import all_of
from hamcrest import has_entry, has_item
def has_label(name, value):
return has_entry('labels',
has_item(
all_of(
has_entry('name', name),
has_entry('value', value)
)
))
def has_severity(level):
return has_label('severity', level)
def has_epic(feature):
return has_label('epic', feature)
def has_feature(feature):
return has_label('feature', feature)
def has_story(story):
return has_label('story', story)
def has_tag(tag):
return has_label('tag', tag)