Searched refs:HttpMock (Results 1 – 10 of 10) sorted by relevance
/external/python/google-api-python-client/tests/ |
D | test_discovery.py | 70 from googleapiclient.http import HttpMock 415 self.http = HttpMock(datafile("malformed.json"), {"status": "200"}) 433 http = HttpMock(datafile("plus.json"), {"status": "200"}) 501 http = HttpMock() 609 self.http = HttpMock(datafile("plus.json"), {"status": "200"}) 633 self.http = HttpMock(None, {"status": "200"}) 671 self.http = HttpMock(datafile("plus.json"), {"status": "200"}) 689 self.http = HttpMock(None, {"status": "200"}) 702 self.http = HttpMock(datafile("plus.json"), {"status": "200"}) 745 http = HttpMock(datafile("zoo.json"), {"status": "200"}) [all …]
|
D | test_mocks.py | 34 from googleapiclient.http import HttpMock 46 self.http = HttpMock(datafile("plus.json"), {"status": "200"}) 47 self.zoo_http = HttpMock(datafile("zoo.json"), {"status": "200"})
|
D | test_http.py | 50 from googleapiclient.http import HttpMock 449 http = HttpMock(datafile("zoo.json"), {"status": "200"}) 858 http = HttpMock(datafile("zoo.json"), headers={"status": "200"}) 878 http = HttpMock(None, headers={"status": 200}) 1607 http = HttpMock(datafile("zoo.json")) 1612 http = HttpMock(datafile("bad_request.json"), {"status": "400"})
|
/external/python/google-api-python-client/docs/ |
D | mocks.md | 7 ## HttpMock section in Mocks 9 …the constructor for the [HttpMock](https://googleapis.github.io/google-api-python-client/docs/epy/… 13 This example uses `HttpMock` to simulate the basic steps necessary to complete an API call to the [… 17 from googleapiclient.http import HttpMock 20 http = HttpMock('books-discovery.json', {'status': '200'}) 24 http = HttpMock('books-android.json', {'status': '200'}) 32 > - Notice that a second HttpMock is created to simulate the second HTTP call.
|
/external/python/oauth2client/tests/ |
D | http_mock.py | 22 class HttpMock(object): class
|
D | test_client.py | 44 from .http_mock import HttpMock 858 http = HttpMock(headers={'status': status}) 1013 http = credentials.authorize(HttpMock()) 1040 http = HttpMock()
|
/external/python/google-api-python-client/docs/epy/ |
D | api-objects.txt | 195 googleapiclient.http.HttpMock googleapiclient.http.HttpMock-class.html 196 googleapiclient.http.HttpMock.request googleapiclient.http.HttpMock-class.html#request 197 googleapiclient.http.HttpMock.__init__ googleapiclient.http.HttpMock-class.html#__init__
|
/external/python/google-api-python-client/googleapiclient/ |
D | discovery.py | 61 from googleapiclient.http import HttpMock 344 if "rootUrl" not in service and (isinstance(http, (HttpMock, HttpMockSequence))):
|
D | http.py | 1672 class HttpMock(object): class
|
/external/python/google-api-python-client/ |
D | CHANGELOG | 286 - Warn when running tests using HttpMock without having a cache. (#261)
|