Home
last modified time | relevance | path

Searched refs:HttpMock (Results 1 – 10 of 10) sorted by relevance

/external/python/google-api-python-client/tests/
Dtest_discovery.py70 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 …]
Dtest_mocks.py34 from googleapiclient.http import HttpMock
46 self.http = HttpMock(datafile("plus.json"), {"status": "200"})
47 self.zoo_http = HttpMock(datafile("zoo.json"), {"status": "200"})
Dtest_http.py50 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/
Dmocks.md7 ## 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/
Dhttp_mock.py22 class HttpMock(object): class
Dtest_client.py44 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/
Dapi-objects.txt195 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/
Ddiscovery.py61 from googleapiclient.http import HttpMock
344 if "rootUrl" not in service and (isinstance(http, (HttpMock, HttpMockSequence))):
Dhttp.py1672 class HttpMock(object): class
/external/python/google-api-python-client/
DCHANGELOG286 - Warn when running tests using HttpMock without having a cache. (#261)