Skip to content

Commit 1455e20

Browse files
authored
Closes #4319 - shorten test names (#4321)
* Closes #4319 - shorten test names * #4319 update docs and config files
1 parent 596abd8 commit 1455e20

File tree

1 file changed

+11
-11
lines changed
  • packages/google-cloud-vision

1 file changed

+11
-11
lines changed

packages/google-cloud-vision/nox.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
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)
@@ -55,19 +55,19 @@ def unit_tests(session, python_version):
5555

5656

5757
@nox.session
58-
@nox.parametrize('python_version', ['2.7', '3.6'])
59-
def system_tests(session, python_version):
58+
@nox.parametrize('py', ['2.7', '3.6'])
59+
def system(session, py):
6060
"""Run the system test suite."""
6161

6262
# Sanity check: Only run system tests if the environment variable is set.
6363
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
6464
session.skip('Credentials must be set via environment variable.')
6565

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

6969
# Set the virtualenv dirname.
70-
session.virtualenv_dirname = 'sys-' + python_version
70+
session.virtualenv_dirname = 'sys-' + py
7171

7272
# Install all test dependencies, then install this package in-place.
7373
session.install('pytest', '../core/', '../storage/')
@@ -84,16 +84,16 @@ def system_tests(session, python_version):
8484

8585

8686
@nox.session
87-
@nox.parametrize('python_version', ['2.7', '3.6'])
88-
def system_tests_manual_layer(session, python_version):
87+
@nox.parametrize('py', ['2.7', '3.6'])
88+
def system_manual_layer(session, py):
8989
"""Run the system test suite for the old manual layer."""
9090

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

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

9898
# Install all test dependencies, then install this package in-place.
9999
session.install('pytest', '../core/', '../storage/')

0 commit comments

Comments
 (0)