8000 Fix missing dependency for tests and small lint issue · qiwzhang/python-docs-samples@70a41b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70a41b6

Browse files
author
Jon Wayne Parrott
committed
Fix missing dependency for tests and small lint issue
Change-Id: I75e38f219372eac4907bc6b421ac9776e15e263f
1 parent 92cc847 commit 70a41b6

File tree

2 files changed

+5
-5
lines changed
  • appengine/flexible/multiple_services/gateway-service

2 files changed

+5
-5
lines changed

appengine/flexible/multiple_services/gateway-service/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from flask import Flask
1616
import requests
17+
1718
import services_config
1819

1920
app = Flask(__name__)

nox.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,14 @@ def _setup_appengine_sdk(session):
176176

177177
def _session_tests(session, sample):
178178
"""Runs py.test for a particular sample."""
179-
# This happens when there are no changed samples for the session.
180-
if sample is None:
181-
session.virtualenv = False
182-
return
183-
184179
session.install('-r', 'testing/requirements.txt')
180+
session.install(GCP_REPO_TOOLS_REQ)
181+
185182
session.chdir(sample)
183+
186184
if os.path.exists(os.path.join(sample, 'requirements.txt')):
187185
session.install('-r', 'requirements.txt')
186+
188187
session.run('pytest', *PYTEST_COMMON_ARGS)
189188

190189

0 commit comments

Comments
 (0)
0