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 b38c49e

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

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
  • packages/google-cloud-logging
Expand file treeCollapse file tree

1 file changed

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

‎packages/google-cloud-logging/nox.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-logging/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(
@@ -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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.