Skip to content

Commit 5a34cd3

Browse files
authored
Closes #4319 - shorten test names (#4321)
* Closes #4319 - shorten test names * #4319 update docs and config files
1 parent a52eb53 commit 5a34cd3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727

2828

2929
@nox.session
30-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
31-
def unit_tests(session, python_version):
30+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
31+
def unit(session, py):
3232
"""Run the unit test suite."""
3333

3434
# Run unit tests against all supported versions of Python.
35-
session.interpreter = 'python{}'.format(python_version)
35+
session.interpreter = 'python{}'.format(py)
3636

3737
# Set the virtualenv dirname.
38-
session.virtualenv_dirname = 'unit-' + python_version
38+
session.virtualenv_dirname = 'unit-' + py
3939

4040
# Install all test dependencies, then install this package in-place.
4141
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -83,19 +83,19 @@ def lint_setup_py(session):
8383

8484

8585
@nox.session
86-
@nox.parametrize('python_version', ['2.7', '3.6'])
87-
def system_tests(session, python_version):
86+
@nox.parametrize('py', ['2.7', '3.6'])
87+
def system(session, py):
8888
"""Run the system test suite."""
8989

9090
# Sanity check: Only run system tests if the environment variable is set.
9191
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
9292
session.skip('Credentials must be set via environment variable.')
9393

9494
# Run the system tests against latest Python 2 and Python 3 only.
95-
session.interpreter = 'python{}'.format(python_version)
95+
session.interpreter = 'python{}'.format(py)
9696

9797
# Set the virtualenv dirname.
98-
session.virtualenv_dirname = 'sys-' + python_version
98+
session.virtualenv_dirname = 'sys-' + py
9999

100100
# Install all test dependencies, then install this package into the
101101
# virtualenv's dist-packages.

0 commit comments

Comments
 (0)