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 dd06697 commit d6c5ab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
from google.cloud.websecurityscanner_v1alpha.proto import finding_addon_pb2
from google.cloud.websecurityscanner_v1alpha.proto import finding_pb2
from google.cloud.websecurityscanner_v1alpha.proto import (
finding_type_stats_pb2 )
finding_type_stats_pb2)
from google.cloud.websecurityscanner_v1alpha.proto import scan_config_pb2
from google.cloud.websecurityscanner_v1alpha.proto import scan_run_pb2
from google.cloud.websecurityscanner_v1alpha.proto import (
web_security_scanner_pb2 )
web_security_scanner_pb2)


_shared_modules = [
Expand Down
6 changes: 4 additions & 2 deletions packages/google-cloud-websecurityscanner/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 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

0 comments on commit d6c5ab6

Please sign in to comment.