@@ -27,132 +27,132 @@ def match(matcher, *args):
27
27
return matcher ()
28
28
29
29
30
- @then (u 'allure report has a scenario with name "{scenario}"' )
30
+ @then ('allure report has a scenario with name "{scenario}"' )
31
31
def step_scenario (context , scenario ):
32
32
matcher = partial (match , has_test_case , scenario )
33
33
context .scenario = matcher
34
34
assert_that (context .allure_report , matcher ())
35
35
36
36
37
- @then (u 'allure report has not a scenario with name "{scenario}"' )
37
+ @then ('allure report has not a scenario with name "{scenario}"' )
38
38
def step_scenario (context , scenario ):
39
39
matcher = partial (match , not_ , has_test_case , scenario )
40
40
context .scenario = matcher
41
41
assert_that (context .allure_report , matcher ())
42
42
43
43
44
- @then (u 'scenario has before fixture "{fixture}"' )
45
- @then (u 'this scenario has before fixture "{fixture}"' )
44
+ @then ('scenario has before fixture "{fixture}"' )
45
+ @then ('this scenario has before fixture "{fixture}"' )
46
46
def step_before_fixture (context , fixture ):
47
47
context_matcher = context .scenario
48
48
matcher = partial (context_matcher , has_container , context .allure_report , has_before , fixture )
49
49
context .before = matcher
50
50
assert_that (context .allure_report , matcher ())
51
51
52
52
53
- @then (u 'scenario has after fixture "{fixture}"' )
54
- @then (u 'this scenario has after fixture "{fixture}"' )
53
+ @then ('scenario has after fixture "{fixture}"' )
54
+ @then ('this scenario has after fixture "{fixture}"' )
55
55
def step_after_fixture (context , fixture ):
56
56
context_matcher = context .scenario
57
57
matcher = partial (context_matcher , has_container , context .allure_report , has_after , fixture )
58
58
context .after = matcher
59
59
assert_that (context .allure_report , matcher ())
60
60
61
61
62
- @then (u 'scenario has not before fixture "{fixture}"' )
63
- @then (u 'this scenario has not before fixture "{fixture}"' )
62
+ @then ('scenario has not before fixture "{fixture}"' )
63
+ @then ('this scenario has not before fixture "{fixture}"' )
64
64
def step_no_before_fixture (context , fixture ):
65
65
context_matcher = context .scenario
66
66
matcher = partial (context_matcher , not_ , has_container , context .allure_report , has_before , fixture )
67
67
assert_that (context .allure_report , matcher ())
68
68
69
69
70
- @then (u 'scenario has not after fixture "{fixture}"' )
71
- @then (u 'this scenario has not after fixture "{fixture}"' )
70
+ @then ('scenario has not after fixture "{fixture}"' )
71
+ @then ('this scenario has not after fixture "{fixture}"' )
72
72
def step_impl (context , fixture ):
73
73
context_matcher = context .scenario
74
74
matcher = partial (context_matcher , not_ , has_container , context .allure_report , has_after , fixture )
75
75
assert_that (context .allure_report , matcher ())
76
76
77
77
78
- @then (u '{item} contains step "{step}"' )
79
- @then (u 'this {item} contains step "{step}"' )
78
+ @then ('{item} contains step "{step}"' )
79
+ @then ('this {item} contains step "{step}"' )
80
80
def step_step (context , item , step ):
81
81
context_matcher = getattr (context , item )
82
82
matcher = partial (context_matcher , has_step , step )
83
83
context .step = matcher
84
84
assert_that (context .allure_report , matcher ())
85
85
86
86
87
- @then (u '{item} has "{status}" status' )
88
- @then (u 'this {item} has "{status}" status' )
87
+ @then ('{item} has "{status}" status' )
88
+ @then ('this {item} has "{status}" status' )
89
89
def step_status (context , item , status ):
90
90
context_matcher = getattr (context , item )
91
91
matcher = partial (context_matcher , with_status , status )
92
92
assert_that (context .allure_report , matcher ())
93
93
94
94
95
- @then (u '{item} has status details with message "{message}"' )
96
- @then (u 'this {item} has status details with message "{message}"' )
95
+ @then ('{item} has status details with message "{message}"' )
96
+ @then ('this {item} has status details with message "{message}"' )
97
97
def step_status (context , item , message ):
98
98
context_matcher = getattr (context , item )
99
99
matcher = partial (context_matcher , has_status_details , with_message_contains , message )
100
100
assert_that (context .allure_report , matcher ())
101
101
102
102
103
- @then (u 'scenario has "{severity}" severity' )
104
- @then (u 'this scenario has "{severity}" severity' )
103
+ @then ('scenario has "{severity}" severity' )
104
+ @then ('this scenario has "{severity}" severity' )
105
105
def step_severity (context , severity ):
106
106
context_matcher = context .scenario
107
107
matcher = partial (context_matcher , has_severity , severity )
108
108
assert_that (context .allure_report , matcher ())
109
109
110
110
111
- @then (u 'scenario has "{tag}" tag' )
112
- @then (u 'this scenario has "{tag}" tag' )
111
+ @then ('scenario has "{tag}" tag' )
112
+ @then ('this scenario has "{tag}" tag' )
113
113
def step_tag (context , tag ):
114
114
context_matcher = context .scenario
115
115
matcher = partial (context_matcher , has_tag , tag )
116
116
assert_that (context .allure_report , matcher ())
117
117
118
118
119
- @then (u 'scenario has "{url}" link' )
120
- @then (u 'this scenario has "{url}" link' )
121
- @then (u 'scenario has "{url}" link with type "{link_type}"' )
122
- @then (u 'this scenario has "{url}" link with type "{link_type}"' )
123
- @then (u 'scenario has "{url}" link with type "{link_type}" and name "{name}"' )
124
- @then (u 'this scenario has "{url}" link with type "{link_type}" and name "{name}"' )
119
+ @then ('scenario has "{url}" link' )
120
+ @then ('this scenario has "{url}" link' )
121
+ @then ('scenario has "{url}" link with type "{link_type}"' )
122
+ @then ('this scenario has "{url}" link with type "{link_type}"' )
123
+ @then ('scenario has "{url}" link with type "{link_type}" and name "{name}"' )
124
+ @then ('this scenario has "{url}" link with type "{link_type}" and name "{name}"' )
125
125
def step_link (context , url , link_type = None , name = None ,):
126
126
context_matcher = context .scenario
127
127
matcher = partial (context_matcher , has_link , url , link_type , name )
128
128
assert_that (context .allure_report , matcher ())
129
129
130
130
131
- @then (u 'scenario has "{name}" label with value "{value}"' )
132
- @then (u 'this scenario has "{name}" label with value "{value}"' )
131
+ @then ('scenario has "{name}" label with value "{value}"' )
132
+ @then ('this scenario has "{name}" label with value "{value}"' )
133
133
def step_label (context , name , value ):
134
134
context_matcher = context .scenario
135
135
matcher = partial (context_matcher , has_label , name , value )
136
136
assert_that (context .allure_report , matcher ())
137
137
138
138
139
- @then (u '{item} has parameter "{name}" with value "{value}"' )
140
- @then (u 'this {item} has parameter "{name}" with value "{value}"' )
139
+ @then ('{item} has parameter "{name}" with value "{value}"' )
140
+ @then ('this {item} has parameter "{name}" with value "{value}"' )
141
141
def step_parameter (context , item , name , value ):
142
142
context_matcher = getattr (context , item )
143
143
matcher = partial (context_matcher , has_parameter , name , value )
144
144
assert_that (context .allure_report , matcher ())
145
145
146
146
147
- @then (u '{item} has attachment' )
148
- @then (u 'this {item} has attachment' )
147
+ @then ('{item} has attachment' )
148
+ @then ('this {item} has attachment' )
149
149
def step_attachment (context , item ):
150
150
context_matcher = getattr (context , item )
151
151
matcher = partial (context_matcher , has_attachment )
152
152
assert_that (context .allure_report , matcher ())
153
153
154
154
155
- @then (u 'scenario has description "{description}"' )
155
+ @then ('scenario has description "{description}"' )
156
156
def step_description (context , description ):
157
157
context_matcher = context .scenario
158
158
matcher = partial (context_matcher , has_description , contains_string (description ))
0 commit comments