@@ -351,6 +351,8 @@ def test_venv_special_chars_issue252(cmd, initproj):
351
351
'tox.ini' : '''
352
352
[tox]
353
353
envlist = special&&1
354
+ [testenv]
355
+ commands={envpython} --version
354
356
[testenv:special&&1]
355
357
changedir=tests
356
358
'''
@@ -468,7 +470,10 @@ def test_package_install_fails(cmd, initproj):
468
470
install_requires=['qweqwe123'],
469
471
)
470
472
""" ,
471
- 'tox.ini' : '' ,
473
+ 'tox.ini' : """
474
+ [testenv]
475
+ commands={envpython} --version
476
+ """ ,
472
477
})
473
478
result = cmd .run ("tox" , )
474
479
assert result .ret
@@ -541,6 +546,8 @@ def test_json(self, cmd, example123):
541
546
542
547
def test_develop (initproj , cmd ):
543
548
initproj ("example123" , filedefs = {'tox.ini' : """
549
+ [testenv]
550
+ commands={envpython} --version
544
551
""" })
545
552
result = cmd .run ("tox" , "-vv" , "--develop" )
546
553
assert not result .ret
@@ -550,6 +557,7 @@ def test_develop(initproj, cmd):
550
557
def test_usedevelop (initproj , cmd ):
551
558
initproj ("example123" , filedefs = {'tox.ini' : """
552
559
[testenv]
560
+ commands={envpython} --version
553
561
usedevelop=True
554
562
""" })
555
563
result = cmd .run ("tox" , "-vv" )
@@ -559,6 +567,8 @@ def test_usedevelop(initproj, cmd):
559
567
560
568
def test_usedevelop_mixed (initproj , cmd ):
561
569
initproj ("example123" , filedefs = {'tox.ini' : """
570
+ [testenv]
571
+ commands={envpython} --version
562
572
[testenv:devenv]
563
573
usedevelop=True
564
574
[testenv:nondev]
@@ -648,6 +658,7 @@ def test_notest(initproj, cmd):
648
658
initproj ("example123" , filedefs = {'tox.ini' : """
649
659
# content of: tox.ini
650
660
[testenv:py26]
661
+ commands={envpython} --version
651
662
basepython=python
652
663
""" })
653
664
result = cmd .run ("tox" , "-v" , "--notest" )
@@ -664,7 +675,10 @@ def test_notest(initproj, cmd):
664
675
665
676
666
677
def test_PYC (initproj , cmd , monkeypatch ):
667
- initproj ("example123" , filedefs = {'tox.ini' : '' })
678
+ initproj ("example123" , filedefs = {'tox.ini' : """
679
+ [testenv]
680
+ commands={envpython} --version
681
+ """ })
668
682
monkeypatch .setenv ("PYTHONDOWNWRITEBYTECODE" , 1 )
669
683
result = cmd .run ("tox" , "-v" , "--notest" )
670
684
assert not result .ret
@@ -674,7 +688,10 @@ def test_PYC(initproj, cmd, monkeypatch):
674
688
675
689
676
690
def test_env_VIRTUALENV_PYTHON (initproj , cmd , monkeypatch ):
677
- initproj ("example123" , filedefs = {'tox.ini' : '' })
691
+ initproj ("example123" , filedefs = {'tox.ini' : """
692
+ [testenv]
693
+ commands={envpython} --version
694
+ """ })
678
695
monkeypatch .setenv ("VIRTUALENV_PYTHON" , '/FOO' )
679
696
result = cmd .run ("tox" , "-v" , "--notest" )
680
697
assert not result .ret , result .stdout .lines
@@ -700,6 +717,8 @@ def test_separate_sdist_no_sdistfile(cmd, initproj):
700
717
'tox.ini' : """
701
718
[tox]
702
719
distshare=%s
720
+ [testenv]
721
+ commands={envpython} --version
703
722
""" % distshare
704
723
})
705
724
result = cmd .run ("tox" , "--sdistonly" )
@@ -717,6 +736,8 @@ def test_separate_sdist(cmd, initproj):
717
736
[tox]
718
737
distshare=%s
719
738
sdistsrc={distshare}/pkg123-0.7.zip
739
+ [testenv]
740
+ commands={envpython} --version
720
741
""" % distshare
721
742
})
722
743
result = cmd .run ("tox" , "--sdistonly" )
@@ -737,6 +758,8 @@ def test_sdist_latest(tmpdir, newconfig):
737
758
[tox]
738
759
distshare=%s
739
760
sdistsrc={distshare}/pkg123-*
761
+ [testenv]
762
+ commands={envpython} --version
740
763
""" % distshare )
741
764
p = distshare .ensure ("pkg123-1.4.5.zip" )
742
765
distshare .ensure ("pkg123-1.4.5a1.zip" )
@@ -789,6 +812,7 @@ def test_verbosity(cmd, initproj, verbosity):
789
812
initproj ("pkgX-0.0.5" , filedefs = {
790
813
'tox.ini' : """
791
814
[testenv]
815
+ commands={envpython} --version
792
816
""" })
793
817
result = cmd .run ("tox" , verbosity )
794
818
assert result .ret == 0
0 commit comments