Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(669)

Issue 6737065: Only use data when there is a dataWrapper.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Ali Afshar
Modified:
13 years ago
Reviewers:
jcgregorio_google
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Description

Fixes #208

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix from review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M apiclient/model.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/test_json_model.py View 1 2 chunks +25 lines, -1 line 0 comments Download
M tests/test_mocks.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
jcgregorio_google
LGTM https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py File tests/test_json_model.py (right): https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py#newcode260 tests/test_json_model.py:260: def test_data_wrapper_deserialize_nondict(self): Technically this test isn't needed because ...
13 years ago (2012-10-23 16:31:30 UTC) #1
Ali Afshar
https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py File tests/test_json_model.py (right): https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py#newcode260 tests/test_json_model.py:260: def test_data_wrapper_deserialize_nondict(self): On 2012/10/23 16:31:30, jcgregorio_google wrote: > Technically ...
13 years ago (2012-10-23 16:39:28 UTC) #2
jcgregorio_google
Yeah, go ahead and remove it to avoid confusion. On 2012/10/23 16:39:28, Ali Afshar wrote: ...
13 years ago (2012-10-23 16:40:35 UTC) #3
Ali Afshar
Done The code in model.py does check that the body is a dict, should that ...
13 years ago (2012-10-23 16:42:58 UTC) #4
jcgregorio_google
On 2012/10/23 16:42:58, Ali Afshar wrote: > Done > > The code in model.py does ...
13 years ago (2012-10-23 16:58:43 UTC) #5
Ali Afshar
13 years ago (2012-10-23 18:15:34 UTC) #6
Pushed in http://code.google.com/p/google-api-python-client/source/detail?r=5032f9751ca... On 2012/10/23 16:58:43, jcgregorio_google wrote: > On 2012/10/23 16:42:58, Ali Afshar wrote: > > Done > > > > The code in model.py does check that the body is a dict, should that be > removed? > > No, I like being defensive, I was just worried that a test that showed a > non-dict being returned would mislead someone reading the tests. > > > > > On 2012/10/23 16:40:35, jcgregorio_google wrote: > > > Yeah, go ahead and remove it to avoid confusion. > > > > > > On 2012/10/23 16:39:28, Ali Afshar wrote: > > > > https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py > > > > File tests/test_json_model.py (right): > > > > > > > > > > > > > > https://codereview.appspot.com/6737065/diff/1/tests/test_json_model.py#newcod... > > > > tests/test_json_model.py:260: def > > test_data_wrapper_deserialize_nondict(self): > > > > On 2012/10/23 16:31:30, jcgregorio_google wrote: > > > > > Technically this test isn't needed because the response is guaranteed to > > be > > > a > > > > > dictionary. > > > > > > > > Shall I remove it?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b