Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef8c28d

Browse files
authored
exclude system test run from video intelligence (googleapis#5620)
1 parent f2c49c8 commit ef8c28d

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

videointelligence/nox.py

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,29 @@ def unit(session, py):
4343
session.run('py.test', '--quiet', os.path.join('tests', 'unit'))
4444

4545

46-
@nox.session
47-
@nox.parametrize('py', ['2.7', '3.7'])
48-
def system(session, py):
49-
"""Run the system test suite."""
50-
51-
# Sanity check: Only run system tests if the environment variable is set.
52-
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
53-
session.skip('Credentials must be set via environment variable.')
54-
55-
# Run unit tests against all supported versions of Python.
56-
session.interpreter = 'python{}'.format(py)
57-
58-
# Set the virtualenv dirname.
59-
session.virtualenv_dirname = 'sys-' + py
60-
61-
# Install all test dependencies, then install this package in-place.
62-
session.install('pytest')
63-
session.install('-e', '.')
64-
65-
# Run py.test against the unit tests.
66-
session.run('py.test', '--quiet', os.path.join('tests', 'system'),
67-
*session.posargs)
46+
# TODO: Fix generated system tests
47+
#@nox.session
48+
#@nox.parametrize('py', ['2.7', '3.7'])
49+
#def system(session, py):
50+
# """Run the system test suite."""
51+
#
52+
# # Sanity check: Only run system tests if the environment variable is set.
53+
# if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
54+
# session.skip('Credentials must be set via environment variable.')
55+
#
56+
# # Run unit tests against all supported versions of Python.
57+
# session.interpreter = 'python{}'.format(py)
58+
#
59+
# # Set the virtualenv dirname.
60+
# session.virtualenv_dirname = 'sys-' + py
61+
#
62+
# # Install all test dependencies, then install this package in-place.
63+
# session.install('pytest')
64+
# session.install('-e', '.')
65+
#
66+
# # Run py.test against the unit tests.
67+
# session.run('py.test', '--quiet', os.path.join('tests', 'system'),
68+
# *session.posargs)
6869

6970

7071
@nox.session

videointelligence/synth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
version,
2929
artman_output_name=f'video-intelligence-{version}')
3030

31+
# TODO: stop excluding tests and nox.py (excluded as we lack system tests)
3132
s.move(
3233
library,
3334
excludes=[
@@ -36,6 +37,7 @@
3637
f'test_system_video_intelligence_service_{version}.py',
3738
f'tests/unit/gapic/{version}/'
3839
f'test_video_intelligence_service_client_{version}.py',
40+
f'nox.py',
3941
])
4042

4143
s.replace("**/*/video_intelligence_service_client.py",

0 commit comments

Comments
 (0)