26
26
27
27
28
28
@nox .session
29
- @nox .parametrize ('python_version ' , ['2.7' , '3.4' , '3.5' , '3.6' ])
30
- def unit_tests (session , python_version ):
29
+ @nox .parametrize ('py ' , ['2.7' , '3.4' , '3.5' , '3.6' ])
30
+ def unit (session , py ):
31
31
"""Run the unit test suite."""
32
32
33
33
# Run unit tests against all supported versions of Python.
34
- session .interpreter = 'python{}' .format (python_version )
34
+ session .interpreter = 'python{}' .format (py )
35
35
36
36
# Set the virtualenv dirname.
37
- session .virtualenv_dirname = 'unit-' + python_version
37
+ session .virtualenv_dirname = 'unit-' + py
38
38
39
39
# Install all test dependencies, then install this package in-place.
40
40
session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
@@ -55,19 +55,19 @@ def unit_tests(session, python_version):
55
55
56
56
57
57
@nox .session
58
- @nox .parametrize ('python_version ' , ['2.7' , '3.6' ])
59
- def system_tests (session , python_version ):
58
+ @nox .parametrize ('py ' , ['2.7' , '3.6' ])
59
+ def system (session , py ):
60
60
"""Run the system test suite."""
61
61
62
62
# Sanity check: Only run system tests if the environment variable is set.
63
63
if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
64
64
session .skip ('Credentials must be set via environment variable.' )
65
65
66
66
# Run unit tests against all supported versions of Python.
67
- session .interpreter = 'python{}' .format (python_version )
67
+ session .interpreter = 'python{}' .format (py )
68
68
69
69
# Set the virtualenv dirname.
70
- session .virtualenv_dirname = 'sys-' + python_version
70
+ session .virtualenv_dirname = 'sys-' + py
71
71
72
72
# Install all test dependencies, then install this package in-place.
73
73
session .install ('pytest' , '../core/' , '../storage/' )
@@ -84,16 +84,16 @@ def system_tests(session, python_version):
84
84
85
85
86
86
@nox .session
87
- @nox .parametrize ('python_version ' , ['2.7' , '3.6' ])
88
- def system_tests_manual_layer (session , python_version ):
87
+ @nox .parametrize ('py ' , ['2.7' , '3.6' ])
88
+ def system_manual_layer (session , py ):
89
89
"""Run the system test suite for the old manual layer."""
90
90
91
91
# Sanity check: Only run system tests if the environment variable is set.
92
92
if not os .environ .get ('GOOGLE_APPLICATION_CREDENTIALS' , '' ):
93
93
session .skip ('Credentials must be set via environment variable.' )
94
94
95
95
# Run unit tests against all supported versions of Python.
96
- session .interpreter = 'python{}' .format (python_version )
96
+ session .interpreter = 'python{}' .format (py )
97
97
98
98
# Install all test dependencies, then install this package in-place.
99
99
session .install ('pytest' , '../core/' , '../storage/' )
0 commit comments