Skip to content

Commit

Permalink
Closes #4319 - shorten test names (#4321)
Browse files Browse the repository at this point in the history
* Closes #4319 - shorten test names

* #4319 update docs and config files
  • Loading branch information
chemelnucfin authored Nov 1, 2017
1 parent 596abd8 commit 1455e20
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/google-cloud-vision/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@


@nox.session
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
def unit_tests(session, python_version):
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
def unit(session, py):
"""Run the unit test suite."""

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

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

# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
Expand All @@ -55,19 +55,19 @@ def unit_tests(session, python_version):


@nox.session
@nox.parametrize('python_version', ['2.7', '3.6'])
def system_tests(session, python_version):
@nox.parametrize('py', ['2.7', '3.6'])
def system(session, py):
"""Run the system test suite."""

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

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

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

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


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

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

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

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

0 comments on commit 1455e20

Please sign in to comment.