3
3
4
4
5
5
class TestReportSerialization (object ):
6
- """
7
- All the tests in this class came originally from test_remote.py in xdist (ca03269).
8
- """
9
-
10
6
def test_xdist_longrepr_to_str_issue_241 (self , testdir ):
7
+ """
8
+ Regarding issue pytest-xdist#241
9
+
10
+ This test came originally from test_remote.py in xdist (ca03269).
11
+ """
11
12
testdir .makepyfile (
12
13
"""
13
14
import os
@@ -28,6 +29,10 @@ def test_b(): pass
28
29
assert test_b_call ._to_json ()["longrepr" ] is None
29
30
30
31
def test_xdist_report_longrepr_reprcrash_130 (self , testdir ):
32
+ """Regarding issue pytest-xdist#130
33
+
34
+ This test came originally from test_remote.py in xdist (ca03269).
35
+ """
31
36
reprec = testdir .inline_runsource (
32
37
"""
33
38
import py
@@ -59,6 +64,10 @@ def test_fail(): assert False, 'Expected Message'
59
64
assert added_section in a .longrepr .sections
60
65
61
66
def test_reprentries_serialization_170 (self , testdir ):
67
+ """Regarding issue pytest-xdist#170
68
+
69
+ This test came originally from test_remote.py in xdist (ca03269).
70
+ """
62
71
from _pytest ._code .code import ReprEntry
63
72
64
73
reprec = testdir .inline_runsource (
@@ -90,6 +99,10 @@ def test_repr_entry():
90
99
assert rep_entries [i ].style == a_entries [i ].style
91
100
92
101
def test_reprentries_serialization_196 (self , testdir ):
102
+ """Regarding issue pytest-xdist#196
103
+
104
+ This test came originally from test_remote.py in xdist (ca03269).
105
+ """
93
106
from _pytest ._code .code import ReprEntryNative
94
107
95
108
reprec = testdir .inline_runsource (
@@ -113,6 +126,9 @@ def test_repr_entry_native():
113
126
assert rep_entries [i ].lines == a_entries [i ].lines
114
127
115
128
def test_itemreport_outcomes (self , testdir ):
129
+ """
130
+ This test came originally from test_remote.py in xdist (ca03269).
131
+ """
116
132
reprec = testdir .inline_runsource (
117
133
"""
118
134
import py
@@ -145,6 +161,7 @@ def test_xfail_imperative():
145
161
assert newrep .longreprtext == rep .longreprtext
146
162
147
163
def test_collectreport_passed (self , testdir ):
164
+ """This test came originally from test_remote.py in xdist (ca03269)."""
148
165
reprec = testdir .inline_runsource ("def test_func(): pass" )
149
166
reports = reprec .getreports ("pytest_collectreport" )
150
167
for rep in reports :
@@ -155,6 +172,7 @@ def test_collectreport_passed(self, testdir):
155
172
assert newrep .skipped == rep .skipped
156
173
157
174
def test_collectreport_fail (self , testdir ):
175
+ """This test came originally from test_remote.py in xdist (ca03269)."""
158
176
reprec = testdir .inline_runsource ("qwe abc" )
159
177
reports = reprec .getreports ("pytest_collectreport" )
160
178
assert reports
@@ -168,6 +186,7 @@ def test_collectreport_fail(self, testdir):
168
186
assert newrep .longrepr == str (rep .longrepr )
169
187
170
188
def test_extended_report_deserialization (self , testdir ):
189
+ """This test came originally from test_remote.py in xdist (ca03269)."""
171
190
reprec = testdir .inline_runsource ("qwe abc" )
172
191
reports = reprec .getreports ("pytest_collectreport" )
173
192
assert reports
0 commit comments