File tree Expand file tree Collapse file tree 13 files changed +41
-14
lines changed
Expand file tree Collapse file tree 13 files changed +41
-14
lines changed Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1616import os
1717
1818import nox
19+ import nox .command
1920
2021
2122LOCAL_DEPS = ('../core/' ,)
@@ -48,7 +49,8 @@ def system_tests(session, python_version):
4849
4950 # Sanity check: Only run system tests if the environment variable is set.
5051 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
51- return
52+ raise nox .command .CommandFailed (
53+ reason = 'Credentials must be set via environment variable.' )
5254
5355 # Run the system tests against latest Python 2 and Python 3 only.
5456 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' , '../logging/' )
@@ -71,7 +72,8 @@ def system_tests(session, python_version):
7172
7273 # Sanity check: Only run system tests if the environment variable is set.
7374 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
74- return
75+ raise nox .command .CommandFailed (
76+ reason = 'Credentials must be set via environment variable.' )
7577
7678 # Run the system tests against latest Python 2 and Python 3 only.
7779 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -52,7 +53,8 @@ def system_tests(session, python_version):
5253
5354 # Sanity check: Only run system tests if the environment variable is set.
5455 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
55- return
56+ raise nox .command .CommandFailed (
57+ reason = 'Credentials must be set via environment variable.' )
5658
5759 # Run the system tests against latest Python 2 and Python 3 only.
5860 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
Original file line number Diff line number Diff line change 1717import os
1818
1919import nox
20+ import nox .command
2021
2122
2223LOCAL_DEPS = ('../core/' ,)
@@ -49,7 +50,8 @@ def system_tests(session, python_version):
4950
5051 # Sanity check: Only run system tests if the environment variable is set.
5152 if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
52- return
53+ raise nox .command .CommandFailed (
54+ reason = 'Credentials must be set via environment variable.' )
5355
5456 # Run the system tests against latest Python 2 and Python 3 only.
5557 session .interpreter = 'python{}' .format (python_version )
You can’t perform that action at this time.
0 commit comments