|
1 | 1 | """ |
2 | | ->>> allure_report = getfixture('allure_report_with_params')('--allure-features=right_feature', |
| 2 | +>>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 3 | +... '--allure-features=right_feature', |
3 | 4 | ... '--allure-stories=right_story') |
4 | 5 | >>> assert_that(allure_report, |
5 | 6 | ... all_of( |
|
8 | 9 | ... )) # doctest: +SKIP |
9 | 10 | """ |
10 | 11 |
|
11 | | -import pytest |
| 12 | +import allure |
12 | 13 |
|
13 | | -def test_wihtout_features_and_stories(): |
| 14 | + |
| 15 | +def test_without_epic_features_and_stories(): |
14 | 16 | """ |
15 | | - >>> allure_report = getfixture('allure_report_with_params')('--allure-features=right_feature', |
| 17 | + >>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 18 | + ... '--allure-features=right_feature', |
16 | 19 | ... '--allure-stories=right_story') |
17 | 20 | >>> assert_that(allure_report, |
18 | | - ... has_test_case('test_wihtout_features_and_stories', |
| 21 | + ... has_test_case('test_without_epic_features_and_stories', |
19 | 22 | ... with_status('skipped') |
20 | 23 | ... ) |
21 | 24 | ... ) |
22 | 25 | """ |
23 | 26 | pass |
24 | 27 |
|
25 | | -@pytest.allure.feature('right_feature') |
26 | | -def test_right_feature_without_story(): |
| 28 | + |
| 29 | +@allure.feature('right_feature') |
| 30 | +def test_right_feature_without_story_and_epic(): |
27 | 31 | """ |
28 | | - >>> allure_report = getfixture('allure_report_with_params')('--allure-features=right_feature', |
| 32 | + >>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 33 | + ... '--allure-features=right_feature', |
29 | 34 | ... '--allure-stories=right_story') |
30 | 35 | >>> assert_that(allure_report, |
31 | | - ... has_test_case('test_right_feature_without_story', |
| 36 | + ... has_test_case('test_right_feature_without_story_and_epic', |
32 | 37 | ... with_status('passed') |
33 | 38 | ... ) |
34 | 39 | ... ) |
35 | 40 | """ |
36 | 41 | pass |
37 | 42 |
|
38 | | -@pytest.allure.feature('wrong_feature') |
39 | | -@pytest.allure.story('right_story') |
40 | | -def test_wrong_feature_and_right_story(): |
| 43 | + |
| 44 | +@allure.feature('wrong_epic') |
| 45 | +@allure.feature('wrong_feature') |
| 46 | +@allure.story('right_story') |
| 47 | +def test_right_story_but_wrong_epic_and_feature(): |
41 | 48 | """ |
42 | | - >>> allure_report = getfixture('allure_report_with_params')('--allure-features=right_feature', |
| 49 | + >>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 50 | + ... '--allure-features=right_feature', |
43 | 51 | ... '--allure-stories=right_story') |
44 | 52 | >>> assert_that(allure_report, |
45 | | - ... has_test_case('test_wrong_feature_and_right_story', |
| 53 | + ... has_test_case('test_right_story_but_wrong_epic_and_feature', |
46 | 54 | ... with_status('passed') |
47 | 55 | ... ) |
48 | 56 | ... ) |
49 | 57 | """ |
50 | 58 | pass |
51 | 59 |
|
52 | | -@pytest.allure.feature('right_feature') |
53 | | -@pytest.allure.story('wrong_story') |
54 | | -def test_right_feature_and_wrong_story(): |
| 60 | + |
| 61 | +@allure.feature('wrong_epic') |
| 62 | +@allure.feature('right_feature') |
| 63 | +@allure.story('wrong_story') |
| 64 | +def test_right_feature_but_wrong_epic_and_story(): |
55 | 65 | """ |
56 | | - >>> allure_report = getfixture('allure_report_with_params')('--allure-features=right_feature', |
| 66 | + >>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 67 | + ... '--allure-features=right_feature', |
57 | 68 | ... '--allure-stories=right_story') |
58 | 69 | >>> assert_that(allure_report, |
59 | | - ... has_test_case('test_right_feature_and_wrong_story', |
| 70 | + ... has_test_case('test_right_feature_but_wrong_epic_and_story', |
60 | 71 | ... with_status('passed') |
61 | 72 | ... ) |
62 | 73 | ... ) |
63 | 74 | """ |
64 | 75 | pass |
| 76 | + |
| 77 | + |
| 78 | +@allure.feature('wrong_epic') |
| 79 | +@allure.feature('wrong_feature') |
| 80 | +@allure.story('wrong_story') |
| 81 | +def test_wrong_epic_feature_and_story(): |
| 82 | + """ |
| 83 | + >>> allure_report = getfixture('allure_report_with_params')('--allure-epic=right_epic', |
| 84 | + ... '--allure-features=right_feature', |
| 85 | + ... '--allure-stories=right_story') |
| 86 | + >>> assert_that(allure_report, |
| 87 | + ... has_test_case('test_wrong_epic_feature_and_story', |
| 88 | + ... with_status('skipped') |
| 89 | + ... ) |
| 90 | + ... ) |
| 91 | + """ |
| 92 | + pass |
0 commit comments