Skip to content

Commit

Permalink
Nox: use inplace installs (#5865)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Aug 30, 2018
1 parent d40d733 commit 026f2b8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/google-cloud-container/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def default(session):
Python corresponding to the ``nox`` binary on the ``PATH`` can
run the tests.
"""
# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
# Install all test dependencies, then install local packages in-place.
session.install('mock', 'pytest', 'pytest-cov')
for local_dep in LOCAL_DEPS:
session.install('-e', local_dep)
session.install('-e', '.')

# Run py.test against the unit tests.
Expand Down Expand Up @@ -83,8 +85,10 @@ def system(session, py):
# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install('mock', 'pytest')
session.install('../test_utils/')
session.install('.')
for local_dep in LOCAL_DEPS:
session.install('-e', local_dep)
session.install('-e', '../test_utils/')
session.install('-e', '.')

# Run py.test against the system tests.
session.run('py.test', '--quiet', 'tests/system/')
Expand Down

0 comments on commit 026f2b8

Please sign in to comment.