Skip to content

using HttpMockSequence with BatchHttpRequest #156

@RossLarner

Description

@RossLarner

I am trying to switch over to batching our inappproduct updates and I can't figure out how to avoid this exception in my automated tests:

 result = batch.execute(http=self._http) File "/Users/rosslarner/udemy-py3-env/lib/python3.4/site-packages/oauth2client/util.py", line 137, in positional_wrapper return wrapped(*args, **kwargs) File "/Users/rosslarner/udemy-py3-env/lib/python3.4/site-packages/googleapiclient/http.py", line 1303, in execute self._execute(http, self._order, self._requests) File "/Users/rosslarner/udemy-py3-env/lib/python3.4/site-packages/googleapiclient/http.py", line 1252, in _execute header = 'content-type: %s\r\n\r\n' % resp['content-type'] nose.proxy.KeyError: 'content-type' 

It was all working fine with HttpMockSequence when I wasn't batching the requests. Any ideas on how to get this to work?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions