10BC0 Closes #4319 - shorten test names · googleapis/google-cloud-python@79e5de4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79e5de4

Browse files
committed
Closes #4319 - shorten test names
1 parent bac8717 commit 79e5de4

File tree

21 files changed

+146
-146
lines changed

21 files changed

+146
-146
lines changed

api_core/nox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020

2121
@nox.session
22-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
23-
def unit_tests(session, python_version):
22+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
23+
def unit(session, py):
2424
"""Run the unit test suite."""
2525

2626
# Run unit tests against all supported versions of Python.
27-
session.interpreter = 'python{}'.format(python_version)
27+
session.interpreter = 'python{}'.format(py)
2828

2929
# Set the virtualenv dirname.
30-
session.virtualenv_dirname = 'unit-' + python_version
30+
session.virtualenv_dirname = 'unit-' + py
3131

3232
# Install all test dependencies, then install this package in-place.
3333
session.install(

bigquery/nox.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727

2828
@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):
3131
"""Run the unit test suite."""
3232

3333
# Run unit tests against all supported versions of Python.
34-
session.interpreter = 'python{}'.format(python_version)
34+
session.interpreter = 'python{}'.format(py)
3535

3636
# Set the virtualenv dirname.
37-
session.virtualenv_dirname = 'unit-' + python_version
37+
session.virtualenv_dirname = 'unit-' + py
3838

3939
# Install all test dependencies, then install this package in-place.
4040
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -56,19 +56,19 @@ def unit_tests(session, python_version):
5656

5757

5858
@nox.session
59-
@nox.parametrize('python_version', ['2.7', '3.6'])
60-
def system_tests(session, python_version):
59+
@nox.parametrize('py', ['2.7', '3.6'])
60+
def system(session, py):
6161
"""Run the system test suite."""
6262

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

6767
# Run the system tests against latest Python 2 and Python 3 only.
68-
session.interpreter = 'python{}'.format(python_version)
68+
session.interpreter = 'python{}'.format(py)
6969

7070
# Set the virtualenv dirname.
71-
session.virtualenv_dirname = 'sys-' + python_version
71+
session.virtualenv_dirname = 'sys-' + py
7272

7373
# Install all test dependencies, then install this package into the
7474
# virtualenv's dist-packages.
@@ -89,19 +89,19 @@ def system_tests(session, python_version):
8989

9090

9191
@nox.session
92-
@nox.parametrize('python_version', ['2.7', '3.6'])
93-
def snippets_tests(session, python_version):
92+
@nox.parametrize('py', ['2.7', '3.6'])
93+
def snippets_tests(session, py):
9494
"""Run the system test suite."""
9595

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

100100
# Run the system tests against latest Python 2 and Python 3 only.
101-
session.interpreter = 'python{}'.format(python_version)
101+
session.interpreter = 'python{}'.format(py)
102102

103103
# Set the virtualenv dirname.
104-
session.virtualenv_dirname = 'snip-' + python_version
104+
session.virtualenv_dirname = 'snip-' + py
105105

106106
# Install all test dependencies, then install this package into the
107107
# virtualenv's dist-packages.

bigtable/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525

2626

2727
@nox.session
28-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
29-
def unit_tests(session, python_version):
28+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
29+
def unit(session, py):
3030
"""Run the unit test suite."""
3131

3232
# Run unit tests against all supported versions of Python.
33-
session.interpreter = 'python{}'.format(python_version)
33+
session.interpreter = 'python{}'.format(py)
3434

3535
# Set the virtualenv dirname.
36-
session.virtualenv_dirname = 'unit-' + python_version
36+
session.virtualenv_dirname = 'unit-' + py
3737

3838
# Install all test dependencies, then install this package in-place.
3939
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -55,19 +55,19 @@ def unit_tests(session, python_version):
5555

5656

5757
@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):
6060
"""Run the system test suite."""
6161

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

6666
# Run the system tests against latest Python 2 and Python 3 only.
67-
session.interpreter = 'python{}'.format(python_version)
67+
session.interpreter = 'python{}'.format(py)
6868

6969
# Set the virtualenv dirname.
70-
session.virtualenv_dirname = 'sys-' + python_version
70+
session.virtualenv_dirname = 'sys-' + py
7171

7272
# Install all test dependencies, then install this package into the
7373
# virtualenv's dist-packages.

core/nox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525

2626
@nox.session
27-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
28-
def unit_tests(session, python_version):
27+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
28+
def unit(session, py):
2929
"""Run the unit test suite."""
3030

3131
# Run unit tests against all supported versions of Python.
32-
session.interpreter = 'python{}'.format(python_version)
32+
session.interpreter = 'python{}'.format(py)
3333

3434
# Set the virtualenv dirname.
35-
session.virtualenv_dirname = 'unit-' + python_version
35+
session.virtualenv_dirname = 'unit-' + py
3636

3737
# Install all test dependencies, then install this package in-place.
3838
session.install(

datastore/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727

2828
@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):
3131
"""Run the unit test suite."""
3232

3333
# Run unit tests against all supported versions of Python.
34-
session.interpreter = 'python{}'.format(python_version)
34+
session.interpreter = 'python{}'.format(py)
3535

3636
# Set the virtualenv dirname.
37-
session.virtualenv_dirname = 'unit-' + python_version
37+
session.virtualenv_dirname = 'unit-' + py
3838

3939
# Install all test dependencies, then install this package in-place.
4040
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -56,19 +56,19 @@ def unit_tests(session, python_version):
5656

5757

5858
@nox.session
59-
@nox.parametrize('python_version', ['2.7', '3.6'])
60-
def system_tests(session, python_version):
59+
@nox.parametrize('py', ['2.7', '3.6'])
60+
def system(session, py):
6161
"""Run the system test suite."""
6262

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

6767
# Run the system tests against latest Python 2 and Python 3 only.
68-
session.interpreter = 'python{}'.format(python_version)
68+
session.interpreter = 'python{}'.format(py)
6969

7070
# Set the virtualenv dirname.
71-
session.virtualenv_dirname = 'sys-' + python_version
71+
session.virtualenv_dirname = 'sys-' + py
7272

7373
# Install all test dependencies, then install this package into the
7474
# virtualenv's dist-packages.

dns/nox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727

2828
@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):
3131
"""Run the unit test suite."""
3232

3333
# Run unit tests against all supported versions of Python.
34-
session.interpreter = 'python{}'.format(python_version)
34+
session.interpreter = 'python{}'.format(py)
3535

3636
# Set the virtualenv dirname.
37-
session.virtualenv_dirname = 'unit-' + python_version
37+
session.virtualenv_dirname = 'unit-' + py
3838

3939
# Install all test dependencies, then install this package in-place.
4040
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)

error_reporting/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727

2828

2929
@nox.session
30-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
31-
def unit_tests(session, python_version):
30+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
31+
def unit(session, py):
3232
"""Run the unit test suite."""
3333

3434
# Run unit tests against all supported versions of Python.
35-
session.interpreter = 'python{}'.format(python_version)
35+
session.interpreter = 'python{}'.format(py)
3636

3737
# Set the virtualenv dirname.
38-
session.virtualenv_dirname = 'unit-' + python_version
38+
session.virtualenv_dirname = 'unit-' + py
3939

4040
# Install all test dependencies, then install this package in-place.
4141
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -83,19 +83,19 @@ def lint_setup_py(session):
8383

8484

8585
@nox.session
86-
@nox.parametrize('python_version', ['2.7', '3.6'])
87-
def system_tests(session, python_version):
86+
@nox.parametrize('py', ['2.7', '3.6'])
87+
def system(session, py):
8888
"""Run the system test suite."""
8989

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

9494
# Run the system tests against latest Python 2 and Python 3 only.
95-
session.interpreter = 'python{}'.format(python_version)
95+
session.interpreter = 'python{}'.format(py)
9696

9797
# Set the virtualenv dirname.
98-
session.virtualenv_dirname = 'sys-' + python_version
98+
session.virtualenv_dirname = 'sys-' + py
9999

100100
# Install all test dependencies, then install this package into the
101101
# virtualenv's dist-packages.

firestore/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727

2828

2929
@nox.session
30-
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
31-
def unit_tests(session, python_version):
30+
@nox.parametrize('py', ['2.7', '3.4', '3.5', '3.6'])
31+
def unit(session, py):
3232
"""Run the unit test suite."""
3333

3434
# Run unit tests against all supported versions of Python.
35-
session.interpreter = 'python{}'.format(python_version)
35+
session.interpreter = 'python{}'.format(py)
3636

3737
# Set the virtualenv dirname.
38-
session.virtualenv_dirname = 'unit-' + python_version
38+
session.virtualenv_dirname = 'unit-' + py
3939

4040
# Install all test dependencies, then install this package in-place.
4141
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -58,18 +58,18 @@ def unit_tests(session, python_version):
5858

5959

6060
@nox.session
61-
@nox.parametrize('python_version', ['2.7', '3.6'])
62-
def system_tests(session, python_version):
61+
@nox.parametrize('py', ['2.7', '3.6'])
62+
def system(session, py):
6363
"""Run the system test suite."""
6464
# Sanity check: Only run system tests if the environment variable is set.
6565
if not os.environ.get('FIRESTORE_APPLICATION_CREDENTIALS'):
6666
session.skip('Credentials must be set via environment variable.')
6767

6868
# Run the system tests against latest Python 2 and Python 3 only.
69-
session.interpreter = 'python{}'.format(python_version)
69+
session.interpreter = 'python{}'.format(py)
7070

7171
# Set the virtualenv dirname.
72-
session.virtualenv_dirname = 'sys-' + python_version
72+
session.virtualenv_dirname = 'sys-' + py
7373

7474
# Install all test dependencies, then install this package into the
7575
# virtualenv's dist-packages.

language/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727

2828
@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):
3131
"""Run the unit test suite."""
3232

3333
# Run unit tests against all supported versions of Python.
34-
session.interpreter = 'python{}'.format(python_version)
34+
session.interpreter = 'python{}'.format(py)
3535

3636
# Set the virtualenv dirname.
37-
session.virtualenv_dirname = 'unit-' + python_version
37+
session.virtualenv_dirname = 'unit-' + py
3838

3939
# Install all test dependencies, then install this package in-place.
4040
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
@@ -52,19 +52,19 @@ def unit_tests(session, python_version):
5252

5353

5454
@nox.session
55-
@nox.parametrize('python_version', ['2.7', '3.6'])
56-
def system_tests(session, python_version):
55+
@nox.parametrize('py', ['2.7', '3.6'])
56+
def system(session, py):
5757
"""Run the system test suite."""
5858

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

6363
# Run the system tests against latest Python 2 and Python 3 only.
64-
session.interpreter = 'python{}'.format(python_version)
64+
session.interpreter = 'python{}'.format(py)
6565

6666
# Set the virtualenv dirname.
67-
session.virtualenv_dirname = 'sys-' + python_version
67+
session.virtualenv_dirname = 'sys-' + py
6868

6969
# Install all test dependencies, then install this package into the
7070
# virtualenv's dist-packages.

logging/nox.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727

2828
@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):
3131
"""Run the unit test suite."""
3232

3333
# Run unit tests against all supported versions of Python.
34-
session.interpreter = 'python{}'.format(python_version)
34+
session.interpreter = 'python{}'.format(py)
3535

3636
# Set the virtualenv dirname.
37-
session.virtualenv_dirname = 'unit-' + python_version
37+
session.virtualenv_dirname = 'unit-' + py
3838

3939
# Install all test dependencies, then install this package in-place.
4040
session.install(
@@ -52,19 +52,19 @@ def unit_tests(session, python_version):
5252

5353

5454
@nox.session
55-
@nox.parametrize('python_version', ['2.7', '3.6'])
56-
def system_tests(session, python_version):
55+
@nox.parametrize('py', ['2.7', '3.6'])
56+
def system(session, py):
5757
"""Run the system test suite."""
5858

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

6363
# Run the system tests against latest Python 2 and Python 3 only.
64-
session.interpreter = 'python{}'.format(python_version)
64+
session.interpreter = 'python{}'.format(py)
6565

6666
# Set the virtualenv dirname.
67-
session.virtualenv_dirname = 'sys-' + python_version
67+
session.virtualenv_dirname = 'sys-' + py
6868

6969
# Install all test dependencies, then install this package into the
7070
# virtualenv's dist-packages.

0 commit comments

Comments
 (0)
0