@@ -58,7 +58,7 @@ def test_pip_wheel_success(script, data):
58
58
.format (filename = re .escape (wheel_file_name )), result .stdout )
59
59
assert re .search (
60
60
r"^\s+Stored in directory: " , result .stdout , re .M )
61
- assert wheel_file_path in result .files_created , result . stdout
61
+ result .did_create ( wheel_file_path )
62
62
assert "Successfully built simple" in result .stdout , result .stdout
63
63
64
64
@@ -74,7 +74,7 @@ def test_pip_wheel_build_cache(script, data):
74
74
wheel_file_name = 'simple-3.0-py{pyversion[0]}-none-any.whl' \
75
75
.format (** globals ())
76
76
wheel_file_path = script .scratch / wheel_file_name
77
- assert wheel_file_path in result .files_created , result . stdout
77
+ result .did_create ( wheel_file_path )
78
78
assert "Successfully built simple" in result .stdout , result .stdout
79
79
# remove target file
80
80
(script .scratch_path / wheel_file_name ).unlink ()
@@ -84,7 +84,7 @@ def test_pip_wheel_build_cache(script, data):
84
84
'wheel' , '--no-index' , '-f' , data .find_links ,
85
85
'simple==3.0' ,
86
86
)
87
- assert wheel_file_path in result .files_created , result . stdout
87
+ result .did_create ( wheel_file_path )
88
88
assert "Successfully built simple" not in result .stdout , result .stdout
89
89
90
90
@@ -97,7 +97,7 @@ def test_basic_pip_wheel_downloads_wheels(script, data):
97
97
)
98
98
wheel_file_name = 'simple.dist-0.1-py2.py3-none-any.whl'
99
99
wheel_file_path = script .scratch / wheel_file_name
100
- assert wheel_file_path in result .files_created , result . stdout
100
+ result .did_create ( wheel_file_path )
101
101
assert "Saved" in result .stdout , result .stdout
102
102
103
103
@@ -152,7 +152,7 @@ def test_pip_wheel_builds_editable_deps(script, data):
152
152
wheel_file_name = 'simple-1.0-py{pyversion[0]}-none-any.whl' \
153
153
.format (** globals ())
154
154
wheel_file_path = script .scratch / wheel_file_name
155
- assert wheel_file_path in result .files_created , result . stdout
155
+ result .did_create ( wheel_file_path )
156
156
157
157
158
158
def test_pip_wheel_builds_editable (script , data ):
@@ -167,7 +167,7 @@ def test_pip_wheel_builds_editable(script, data):
167
167
wheel_file_name = 'simplewheel-1.0-py{pyversion[0]}-none-any.whl' \
168
168
.format (** globals ())
169
169
wheel_file_path = script .scratch / wheel_file_name
170
- assert wheel_file_path in result .files_created , result . stdout
170
+ result .did_create ( wheel_file_path )
171
171
172
172
173
173
def test_pip_wheel_fail (script , data ):
@@ -182,10 +182,7 @@ def test_pip_wheel_fail(script, data):
182
182
wheel_file_name = 'wheelbroken-0.1-py{pyversion[0]}-none-any.whl' \
183
183
.format (** globals ())
184
184
wheel_file_path = script .scratch / wheel_file_name
185
- assert wheel_file_path not in result .files_created , (
186
- wheel_file_path ,
187
- result .files_created ,
188
- )
185
+ result .did_not_create (wheel_file_path )
189
186
assert "FakeError" in result .stderr , result .stderr
190
187
assert "Failed to build wheelbroken" in result .stdout , result .stdout
191
188
assert result .returncode != 0
@@ -226,7 +223,7 @@ def test_pip_wheel_source_deps(script, data):
226
223
wheel_file_name = 'source-1.0-py{pyversion[0]}-none-any.whl' \
227
224
.format (** globals ())
228
225
wheel_file_path = script .scratch / wheel_file_name
229
- assert wheel_file_path in result .files_created , result . stdout
226
+ result .did_create ( wheel_file_path )
230
227
assert "Successfully built source" in result .stdout , result .stdout
231
228
232
229
@@ -274,7 +271,7 @@ def test_pip_wheel_with_pep518_build_reqs(script, data, common_wheels):
274
271
wheel_file_name = 'pep518-3.0-py{pyversion[0]}-none-any.whl' \
275
272
.format (** globals ())
276
273
wheel_file_path = script .scratch / wheel_file_name
277
- assert wheel_file_path in result .files_created , result . stdout
274
+ result .did_create ( wheel_file_path )
278
275
assert "Successfully built pep518" in result .stdout , result .stdout
279
276
assert "Installing build dependencies" in result .stdout , result .stdout
280
277
@@ -288,7 +285,7 @@ def test_pip_wheel_with_pep518_build_reqs_no_isolation(script, data):
288
285
wheel_file_name = 'pep518-3.0-py{pyversion[0]}-none-any.whl' \
289
286
.format (** globals ())
290
287
wheel_file_path = script .scratch / wheel_file_name
291
- assert wheel_file_path in result .files_created , result . stdout
288
+ result .did_create ( wheel_file_path )
292
289
assert "Successfully built pep518" in result .stdout , result .stdout
293
290
assert "Installing build dependencies" not in result .stdout , result .stdout
294
291
@@ -335,7 +332,7 @@ def test_pep517_wheels_are_not_confused_with_other_files(script, tmpdir, data):
335
332
wheel_file_name = 'withpyproject-0.0.1-py{pyversion[0]}-none-any.whl' \
336
333
.format (** globals ())
337
334
wheel_file_path = script .scratch / wheel_file_name
338
- assert wheel_file_path in result .files_created , result . stdout
335
+ result .did_create ( wheel_file_path )
339
336
340
337
341
338
def test_legacy_wheels_are_not_confused_with_other_files (script , tmpdir , data ):
@@ -350,4 +347,4 @@ def test_legacy_wheels_are_not_confused_with_other_files(script, tmpdir, data):
350
347
wheel_file_name = 'simplewheel-1.0-py{pyversion[0]}-none-any.whl' \
351
348
.format (** globals ())
352
349
wheel_file_path = script .scratch / wheel_file_name
353
- assert wheel_file_path in result .files_created , result . stdout
350
+ result .did_create ( wheel_file_path )
0 commit comments