File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed
allure-python-commons-test/src Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22from __future__ import unicode_literals
33
4- import os
54import six
65import pytest
76from allure_commons .utils import represent
@@ -59,8 +58,8 @@ def mark_to_str(marker):
5958
6059def allure_package (item ):
6160 parts = item .nodeid .split ('::' )
62- path = parts [0 ].split ('.' )[0 ]
63- return path .replace (os . sep , '.' )
61+ path = parts [0 ].rsplit ('.' , 1 )[0 ]
62+ return path .replace ('/' , '.' )
6463
6564
6665def allure_name (item ):
Original file line number Diff line number Diff line change 1+ """
2+ >>> allure_report = getfixture('allure_report')
3+ """
4+
5+
6+ def test_path_with_dots ():
7+ """
8+ >>> allure_report = getfixture('allure_report')
9+ >>> assert_that(allure_report,
10+ ... has_test_case('test_path_with_dots',
11+ ... has_package(
12+ ... ends_with('path.with.dots.path_with_dots_test'),
13+ ... ),
14+ ... )
15+ ... )
16+ """
17+ pass
Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ def has_story(story):
3030
3131def has_tag (tag ):
3232 return has_label ('tag' , tag )
33+
34+
35+ def has_package (package ):
36+ return has_label ('package' , package )
You can’t perform that action at this time.
0 commit comments