File tree 2 files changed +24
-5
lines changed
2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
*
7
7
8
- * Fix (`#469 `_): junit parses report.nodeid incorrectly, when params contain
9
- ``:: ``.
8
+ * Fix (`#469 `_): junit parses report.nodeid incorrectly, when params IDs
9
+ contain ``:: ``. Thanks ` @tomviner `_ for the PR (` #1431 `_) .
10
10
11
11
*
12
12
13
+ .. _#469 : https://github.com/pytest-dev/pytest/issues/469
14
+ .. _#1431 : https://github.com/pytest-dev/pytest/pull/1431
15
+
16
+
13
17
2.9.0
14
18
=====
15
19
103
107
104
108
.. _`traceback style docs` : https://pytest.org/latest/usage.html#modifying-python-traceback-printing
105
109
106
- .. _#469 : https://github.com/pytest-dev/pytest/issues/469
107
110
.. _#1422 : https://github.com/pytest-dev/pytest/issues/1422
108
111
.. _#1379 : https://github.com/pytest-dev/pytest/issues/1379
109
112
.. _#1366 : https://github.com/pytest-dev/pytest/issues/1366
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ def test_func(char):
620
620
node .assert_attr (name = "test_func[#x00]" )
621
621
622
622
623
- def test_double_colon_split_issue469 (testdir ):
623
+ def test_double_colon_split_function_issue469 (testdir ):
624
624
testdir .makepyfile ("""
625
625
import pytest
626
626
@pytest.mark.parametrize('param', ["double::colon"])
@@ -630,7 +630,23 @@ def test_func(param):
630
630
result , dom = runandparse (testdir )
631
631
assert result .ret == 0
632
632
node = dom .find_first_by_tag ("testcase" )
633
- node .assert_attr (classname = "test_double_colon_split_issue469" )
633
+ node .assert_attr (classname = "test_double_colon_split_function_issue469" )
634
+ node .assert_attr (name = 'test_func[double::colon]' )
635
+
636
+
637
+ def test_double_colon_split_method_issue469 (testdir ):
638
+ testdir .makepyfile ("""
639
+ import pytest
640
+ class TestClass:
641
+ @pytest.mark.parametrize('param', ["double::colon"])
642
+ def test_func(self, param):
643
+ pass
644
+ """ )
645
+ result , dom = runandparse (testdir )
646
+ assert result .ret == 0
647
+ node = dom .find_first_by_tag ("testcase" )
648
+ node .assert_attr (
649
+ classname = "test_double_colon_split_method_issue469.TestClass" )
634
650
node .assert_attr (name = 'test_func[double::colon]' )
635
651
636
652
You can’t perform that action at this time.
0 commit comments