@@ -319,7 +319,7 @@ def test_python_install_extra_requirements(tmpdir):
319
319
320
320
321
321
@pytest .mark .parametrize ('value' , ['' , 'null' , '[]' ])
322
- def test_python_extra_requirements_empty (tmpdir , value ):
322
+ def test_python_install_extra_requirements_empty (tmpdir , value ):
323
323
content = '''
324
324
version: "2"
325
325
python:
@@ -330,6 +330,73 @@ def test_python_extra_requirements_empty(tmpdir, value):
330
330
assertValidConfig (tmpdir , content .format (value = value ))
331
331
332
332
333
+ @pytest .mark .parametrize ('pipfile' , ['another_docs/' , '.' , 'project/' ])
334
+ def test_python_install_pipfile (tmpdir , pipfile ):
335
+ utils .apply_fs (tmpdir , {
336
+ 'another_docs' : {
337
+ 'Pipfile' : '' ,
338
+ },
339
+ 'project' : {},
340
+ 'Pipfile' : '' ,
341
+ })
342
+ content = '''
343
+ version: "2"
344
+ python:
345
+ install:
346
+ - pipfile: {}
347
+ '''
348
+ assertValidConfig (tmpdir , content .format (pipfile ))
349
+
350
+
351
+ @pytest .mark .parametrize ('pipfile' , ['docs/' , '.' , 'project/' ])
352
+ def test_python_install_pipfile_invalid (tmpdir , pipfile ):
353
+ utils .apply_fs (tmpdir , {})
354
+ content = '''
355
+ version: "2"
356
+ python:
357
+ install:
358
+ - pipfile: {}
359
+ '''
360
+ content .format (pipfile )
361
+ assertInvalidConfig (tmpdir , content , ['is not a path' ])
362
+
363
+
364
+ @pytest .mark .parametrize ('value' , ['true' , 'false' ])
365
+ def test_python_install_pipfile_dev (tmpdir , value ):
366
+ content = '''
367
+ version: "2"
368
+ python:
369
+ install:
370
+ - pipfile: .
371
+ dev: {value}
372
+ '''
373
+ assertValidConfig (tmpdir , content .format (value = value ))
374
+
375
+
376
+ @pytest .mark .parametrize ('value' , ['true' , 'false' ])
377
+ def test_python_install_pipfile_skip_lock (tmpdir , value ):
378
+ content = '''
379
+ version: "2"
380
+ python:
381
+ install:
382
+ - pipfile: .
383
+ skip_lock: {value}
384
+ '''
385
+ assertValidConfig (tmpdir , content .format (value = value ))
386
+
387
+
388
+ @pytest .mark .parametrize ('value' , ['true' , 'false' ])
389
+ def test_python_install_pipfile_ignore_pipfile (tmpdir , value ):
390
+ content = '''
391
+ version: "2"
392
+ python:
393
+ install:
394
+ - pipfile: .
395
+ ignore_pipfile: {value}
396
+ '''
397
+ assertValidConfig (tmpdir , content .format (value = value ))
398
+
399
+
333
400
@pytest .mark .parametrize ('value' , ['true' , 'false' ])
334
401
def test_python_system_packages (tmpdir , value ):
335
402
content = '''
0 commit comments