4343
4444"""
4545import pytest
46-
46+ import allure
4747from itertools import product
4848
4949
5454def test_nested_steps_inside_test (first_fail_before_second , first_fail_after_second , second_fail ):
5555 with pytest .allure .step ('First step' ):
5656 assert not first_fail_before_second
57- with pytest . allure .step ('Second step' ):
57+ with allure .step ('Second step' ):
5858 assert not second_fail
5959 assert not first_fail_after_second
6060
6161
62- @pytest . allure .step ("Second step" )
62+ @allure .step ("Second step" )
6363def second_step (second_fail ):
6464 assert not second_fail
6565
6666
67- @pytest . allure .step ("First step" )
67+ @allure .step ("First step" )
6868def another_first_step (first_fail_before_second , first_fail_after_second , second_fail ):
6969 assert not first_fail_before_second
7070 second_step (second_fail )
@@ -76,10 +76,10 @@ def test_nested_steps_outside_test(first_fail_before_second, first_fail_after_se
7676 another_first_step (first_fail_before_second , first_fail_after_second , second_fail )
7777
7878
79- @pytest . allure .step ("First step" )
79+ @allure .step ("First step" )
8080def yet_another_first_step (first_fail_before_second , first_fail_after_second , second_fail ):
8181 assert not first_fail_before_second
82- with pytest . allure .step ('Second step' ):
82+ with allure .step ('Second step' ):
8383 assert not second_fail
8484 assert not first_fail_after_second
8585
0 commit comments