@@ -27,132 +27,132 @@ def match(matcher, *args):
2727 return matcher ()
2828
2929
30- @then (u 'allure report has a scenario with name "{scenario}"' )
30+ @then ('allure report has a scenario with name "{scenario}"' )
3131def step_scenario (context , scenario ):
3232 matcher = partial (match , has_test_case , scenario )
3333 context .scenario = matcher
3434 assert_that (context .allure_report , matcher ())
3535
3636
37- @then (u 'allure report has not a scenario with name "{scenario}"' )
37+ @then ('allure report has not a scenario with name "{scenario}"' )
3838def step_scenario (context , scenario ):
3939 matcher = partial (match , not_ , has_test_case , scenario )
4040 context .scenario = matcher
4141 assert_that (context .allure_report , matcher ())
4242
4343
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}"' )
4646def step_before_fixture (context , fixture ):
4747 context_matcher = context .scenario
4848 matcher = partial (context_matcher , has_container , context .allure_report , has_before , fixture )
4949 context .before = matcher
5050 assert_that (context .allure_report , matcher ())
5151
5252
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}"' )
5555def step_after_fixture (context , fixture ):
5656 context_matcher = context .scenario
5757 matcher = partial (context_matcher , has_container , context .allure_report , has_after , fixture )
5858 context .after = matcher
5959 assert_that (context .allure_report , matcher ())
6060
6161
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}"' )
6464def step_no_before_fixture (context , fixture ):
6565 context_matcher = context .scenario
6666 matcher = partial (context_matcher , not_ , has_container , context .allure_report , has_before , fixture )
6767 assert_that (context .allure_report , matcher ())
6868
6969
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}"' )
7272def step_impl (context , fixture ):
7373 context_matcher = context .scenario
7474 matcher = partial (context_matcher , not_ , has_container , context .allure_report , has_after , fixture )
7575 assert_that (context .allure_report , matcher ())
7676
7777
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}"' )
8080def step_step (context , item , step ):
8181 context_matcher = getattr (context , item )
8282 matcher = partial (context_matcher , has_step , step )
8383 context .step = matcher
8484 assert_that (context .allure_report , matcher ())
8585
8686
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' )
8989def step_status (context , item , status ):
9090 context_matcher = getattr (context , item )
9191 matcher = partial (context_matcher , with_status , status )
9292 assert_that (context .allure_report , matcher ())
9393
9494
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}"' )
9797def step_status (context , item , message ):
9898 context_matcher = getattr (context , item )
9999 matcher = partial (context_matcher , has_status_details , with_message_contains , message )
100100 assert_that (context .allure_report , matcher ())
101101
102102
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' )
105105def step_severity (context , severity ):
106106 context_matcher = context .scenario
107107 matcher = partial (context_matcher , has_severity , severity )
108108 assert_that (context .allure_report , matcher ())
109109
110110
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' )
113113def step_tag (context , tag ):
114114 context_matcher = context .scenario
115115 matcher = partial (context_matcher , has_tag , tag )
116116 assert_that (context .allure_report , matcher ())
117117
118118
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}"' )
125125def step_link (context , url , link_type = None , name = None ,):
126126 context_matcher = context .scenario
127127 matcher = partial (context_matcher , has_link , url , link_type , name )
128128 assert_that (context .allure_report , matcher ())
129129
130130
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}"' )
133133def step_label (context , name , value ):
134134 context_matcher = context .scenario
135135 matcher = partial (context_matcher , has_label , name , value )
136136 assert_that (context .allure_report , matcher ())
137137
138138
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}"' )
141141def step_parameter (context , item , name , value ):
142142 context_matcher = getattr (context , item )
143143 matcher = partial (context_matcher , has_parameter , name , value )
144144 assert_that (context .allure_report , matcher ())
145145
146146
147- @then (u '{item} has attachment' )
148- @then (u 'this {item} has attachment' )
147+ @then ('{item} has attachment' )
148+ @then ('this {item} has attachment' )
149149def step_attachment (context , item ):
150150 context_matcher = getattr (context , item )
151151 matcher = partial (context_matcher , has_attachment )
152152 assert_that (context .allure_report , matcher ())
153153
154154
155- @then (u 'scenario has description "{description}"' )
155+ @then ('scenario has description "{description}"' )
156156def step_description (context , description ):
157157 context_matcher = context .scenario
158158 matcher = partial (context_matcher , has_description , contains_string (description ))
0 commit comments