Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e5ebc85

Browse filesBrowse files
author
Jon Wayne Parrott
committed
Fix endpoints tests
Change-Id: I413b48abbfc318758dd7e383502ac985c6b788b5
1 parent 4b094c1 commit e5ebc85
Copy full SHA for e5ebc85

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎appengine/standard/endpoints-frameworks-v2/echo/main.py

Copy file name to clipboardExpand all lines: appengine/standard/endpoints-frameworks-v2/echo/main.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class EchoRequest(messages.Message):
3131
class EchoResponse(messages.Message):
3232
"""A proto Message that contains a simple string field."""
3333
content = messages.StringField(1)
34-
# [END messages]
3534

3635

3736
ECHO_RESOURCE = endpoints.ResourceContainer(
3837
EchoRequest,
3938
n=messages.IntegerField(2, default=1))
39+
# [END messages]
4040

4141

4242
# [START echo_api]
@@ -74,8 +74,7 @@ def echo_path_parameter(self, request):
7474
EchoResponse,
7575
path='echo/getApiKey',
7676
http_method='GET',
77-
name='echo_api_key',
78-
api_key_required=True)
77+
name='echo_api_key')
7978
def echo_api_key(self, request):
8079
return EchoResponse(content=request.get_unrecognized_field_info('key'))
8180

‎appengine/standard/endpoints-frameworks-v2/echo/main_test.py

Copy file name to clipboardExpand all lines: appengine/standard/endpoints-frameworks-v2/echo/main_test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
def test_echo():
2424
api = main.EchoApi()
25-
response = api.echo(main.Echo(content='Hello world!'))
25+
request = main.EchoApi.echo.remote.request_type(content='Hello world!')
26+
response = api.echo(request)
2627
assert 'Hello world!' == response.content
2728

2829

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.