Raw Requestor

class moco_wrapper.util.requestor.RawRequestor

The Raw Requestor is a test requestor that saves all arguments into and object and returns it.

Warning

Use this requestor only for testing.

request(method, path, params=None, data=None, **kwargs) → dict

Request the given resource

Parameters:
  • method – HTTP Method (eg. POST, GET, PUT, DELETE)
  • path – Path of the resource (e.g. /projects)
  • params – Url parameters (e.g. page=1, query parameters)
  • data – Dictionary with data (http body)
  • kwargs – Additional http arguments.
Returns:

Request objects