From bead63456189082ccf1595a5707e11903ecb9c8d Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 29 Jun 2017 10:56:09 -0700 Subject: [PATCH] Skipping system tests when credentials env. var is unset. (#3475) --- packages/google-cloud-python-speech/nox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-python-speech/nox.py b/packages/google-cloud-python-speech/nox.py index 57c0cc4f7e06..bcacf2d59cd6 100644 --- a/packages/google-cloud-python-speech/nox.py +++ b/packages/google-cloud-python-speech/nox.py @@ -49,7 +49,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 the system tests against latest Python 2 and Python 3 only. session.interpreter = 'python{}'.format(python_version)