Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 548cf5f

Browse filesBrowse files
authored
Closes #4319 - shorten test names (#4321)
* Closes #4319 - shorten test names * #4319 update docs and config files
1 parent 998c8b9 commit 548cf5f
Copy full SHA for 548cf5f

File tree

Expand file treeCollapse file tree

23 files changed

+153
-153
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

23 files changed

+153
-153
lines changed
Open diff view settings
Collapse file

‎CONTRIBUTING.rst‎

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ We use `nox`_ to instrument our tests.
102102

103103
- To test your changes, run unit tests with ``nox``::
104104

105-
$ nox -f datastore/nox.py -s "unit_tests(python_version='2.7')"
106-
$ nox -f datastore/nox.py -s "unit_tests(python_version='3.4')"
105+
$ nox -f datastore/nox.py -s "unit(py='2.7')"
106+
$ nox -f datastore/nox.py -s "unit(py='3.4')"
107107
$ ...
108108

109109
.. note::
@@ -118,7 +118,7 @@ We use `nox`_ to instrument our tests.
118118

119119
$ export GIT_ROOT=$(pwd)
120120
$ cd ${GIT_ROOT}/datastore/
121-
$ nox -s "unit_tests(python_version='3.6')"
121+
$ nox -s "unit(py='3.6')"
122122

123123
.. nox: https://pypi.org/project/nox-automation/
124124
@@ -184,8 +184,8 @@ Running System Tests
184184

185185
- To run system tests for a given package, you can execute::
186186

187-
$ nox -f datastore/nox.py -s "system_tests(python_version='3.6')"
188-
$ nox -f datastore/nox.py -s "system_tests(python_version='2.7')"
187+
$ nox -f datastore/nox.py -s "system(py='3.6')"
188+
$ nox -f datastore/nox.py -s "system(py='2.7')"
189189

190190
.. note::
191191

Collapse file

‎api_core/nox.py‎

Copy file name to clipboardExpand all lines: api_core/nox.py
+4-4Lines 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(
Collapse file

‎appveyor.yml‎

Copy file name to clipboardExpand all lines: appveyor.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ environment:
1414
# iterations.
1515

1616
- PYTHON: "C:\\Python27"
17-
NOX_ENV: "unit_tests(python_version='2.7')"
17+
NOX_ENV: "unit(py='2.7')"
1818

1919
- PYTHON: "C:\\Python35-x64"
20-
NOX_ENV: "unit_tests(python_version='3.5')"
20+
NOX_ENV: "unit(py='3.5')"
2121

2222
install:
2323
- cmd: echo "Filesystem root:"
Collapse file

‎bigquery/nox.py‎

Copy file name to clipboardExpand all lines: bigquery/nox.py
+12-12Lines 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.
Collapse file

‎bigtable/nox.py‎

Copy file name to clipboardExpand all lines: bigtable/nox.py
+8-8Lines 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.
Collapse file

‎core/nox.py‎

Copy file name to clipboardExpand all lines: core/nox.py
+4-4Lines 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(
Collapse file

‎datastore/nox.py‎

Copy file name to clipboardExpand all lines: datastore/nox.py
+8-8Lines 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.
Collapse file

‎dns/nox.py‎

Copy file name to clipboardExpand all lines: dns/nox.py
+4-4Lines 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)
Collapse file

‎error_reporting/nox.py‎

Copy file name to clipboardExpand all lines: error_reporting/nox.py
+8-8Lines 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.
Collapse file

‎firestore/nox.py‎

Copy file name to clipboardExpand all lines: firestore/nox.py
+8-8Lines 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.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.