Done The code in model.py does check that the body is a dict, should that ...
12 years, 8 months ago
(2012-10-23 16:42:58 UTC)
#4
Done
The code in model.py does check that the body is a dict, should that be removed?
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?
On 2012/10/23 16:42:58, Ali Afshar wrote: > Done > > The code in model.py does ...
12 years, 8 months ago
(2012-10-23 16:58:43 UTC)
#5
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?
Pushed in http://code.google.com/p/google-api-python-client/source/detail?r=5032f9751caa063986caa55c0de6359d940c1c10 On 2012/10/23 16:58:43, jcgregorio_google wrote: > On 2012/10/23 16:42:58, Ali Afshar wrote: ...
12 years, 8 months 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?
Issue 6737065: Only use data when there is a dataWrapper.
Created 12 years, 8 months ago by Ali Afshar
Modified 12 years, 8 months ago
Reviewers: jcgregorio_google
Base URL:
Comments: 2