Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0298f30b87
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.566 kB
import urlparse
REQUEST_CALLBACKS = []
class Response(dict):
status = 200
content = ""
def __getitem__(self, key):
return getattr(self, key)
def reset_requests():
global REQUEST_CALLBACKS
REQUEST_CALLBACKS = []
def store_request_call(url, **kwargs):
method = kwargs.pop('method', None)
data = urlparse.parse_qs(kwargs.pop("body", ""))
for k,v in data.items():
data[k] = v[0]
global REQUEST_CALLBACKS
if not '/solr' in url:
REQUEST_CALLBACKS.append([url, method, data])
return Response(), ""
Jump to Line
Something went wrong with that request. Please try again.