def make_request(step, url_path):
    client = Client()

    factory = SignedRequestFactory('GET', step.scenario.client_id,
                                   step.scenario.private_key, {})
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.get(url)
def make_request(step, url_path):
    data = {}
    client = Client()
    factory = SignedRequestFactory('POST', step.scenario.client_id,
                                   step.scenario.private_key, data)
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.post(url, data)
Esempio n. 3
0
def make_request(step, url_path):
    data = {}
    client = Client()
    factory = SignedRequestFactory('POST', step.scenario.client_id, step.scenario.private_key, data)
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.post(url, data)
Esempio n. 4
0
def make_request(step, url_path):
    client = Client()

    factory = SignedRequestFactory('GET', step.scenario.client_id, step.scenario.private_key, {})
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.get(url)
Esempio n. 5
0
def make_request(step, url_path):
    client = Client()
    factory = SignedRequestFactory('GET', step.scenario.client_id, step.scenario.private_key)
    url = factory.build_request_url({}, url_path)
    step.scenario.response = client.get(url + "invalidating=thesignature")