Skip to content

Commit

Permalink
Skipping system tests when credentials env. var is unset. (#3475)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes authored Jun 29, 2017
1 parent a1ab8be commit fcfdf18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-vision/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def system_tests(session, python_version):

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

# Run unit tests against all supported versions of Python.
session.interpreter = 'python{}'.format(python_version)
Expand All @@ -67,7 +67,7 @@ def system_tests_manual_layer(session, python_version):

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

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

0 comments on commit fcfdf18

Please sign in to comment.