2626
2727
2828@nox .session
29- @nox .parametrize ('python_version ' , ['2.7' , '3.4' , '3.5' , '3.6' ])
30- def unit_tests (session , python_version ):
29+ @nox .parametrize ('py ' , ['2.7' , '3.4' , '3.5' , '3.6' ])
30+ def unit (session , py ):
3131 """Run the unit test suite."""
3232
3333 # Run unit tests against all supported versions of Python.
34- session .interpreter = 'python{}' .format (python_version )
34+ session .interpreter = 'python{}' .format (py )
3535
3636 # Set the virtualenv dirname.
37- session .virtualenv_dirname = 'unit-' + python_version
37+ session .virtualenv_dirname = 'unit-' + py
3838
3939 # Install all test dependencies, then install this package in-place.
4040 session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
@@ -56,19 +56,19 @@ def unit_tests(session, python_version):
5656
5757
5858@nox .session
59- @nox .parametrize ('python_version ' , ['2.7' , '3.6' ])
60- def system_tests (session , python_version ):
59+ @nox .parametrize ('py ' , ['2.7' , '3.6' ])
60+ def system (session , py ):
6161 """Run the system test suite."""
6262
6363 # Sanity check: Only run system tests if the environment variable is set.
6464 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
6565 session .skip ('Credentials must be set via environment variable.' )
6666
6767 # Run the system tests against latest Python 2 and Python 3 only.
68- session .interpreter = 'python{}' .format (python_version )
68+ session .interpreter = 'python{}' .format (py )
6969
7070 # Set the virtualenv dirname.
71- session .virtualenv_dirname = 'sys-' + python_version
71+ session .virtualenv_dirname = 'sys-' + py
7272
7373 # Install all test dependencies, then install this package into the
7474 # virtualenv's dist-packages.
0 commit comments