Skip to content

Commit 0916c9a

Browse files
authored
Skipping system tests when credentials env. var is unset. (#3475)
1 parent 3382d01 commit 0916c9a

File tree

1 file changed

+1
-1
lines changed
  • packages/google-cloud-translate

1 file changed

+1
-1
lines changed

packages/google-cloud-translate/nox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def system_tests(session, python_version):
4949

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

5454
# Run the system tests against latest Python 2 and Python 3 only.
5555
session.interpreter = 'python{}'.format(python_version)

0 commit comments

Comments
 (0)