From d6c5ab662020bd8e116cc702c8168a01afb6edb9 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 30 Aug 2018 11:50:23 -0400 Subject: [PATCH] Nox: use inplace installs (#5865) --- .../google/cloud/websecurityscanner_v1alpha/types.py | 4 ++-- packages/google-cloud-websecurityscanner/nox.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py b/packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py index dd70ee0d8861..594571c6551b 100644 --- a/packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py +++ b/packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py @@ -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 = [ diff --git a/packages/google-cloud-websecurityscanner/nox.py b/packages/google-cloud-websecurityscanner/nox.py index af0b460c33a5..5ed90894aa55 100644 --- a/packages/google-cloud-websecurityscanner/nox.py +++ b/packages/google-cloud-websecurityscanner/nox.py @@ -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.