def test_poll(client):
    with responses.RequestsMock() as rsps:
        expected = {'result': {'results': [], 'generated_at': '2019-10-11T18:25:22.477203Z', 'elapsed_time': 0.8381369113922119, 'logs': [], 'tags': {'command': 'run --models my_model', 'branch': 'abc123'}, 'status': 'success'}, 'id': '2db9a2fe-9a39-41ef-828c-25e04dd6b07d', 'jsonrpc': client.jsonrpc_version}
        rsps.add(responses.POST, client.url, json=expected, status=202)
        resp = client.poll(request_token='f86926fa-6535-4891-8d24-2cfc65d2a347')
        assert (resp.json() == expected)
def test_poll(client):
    with responses.RequestsMock() as rsps:
        expected = {'result': {'results': [], 'generated_at': '2019-10-11T18:25:22.477203Z', 'elapsed_time': 0.8381369113922119, 'logs': [], 'tags': {'command': 'run --models my_model', 'branch': 'abc123'}, 'status': 'success'}, 'id': '2db9a2fe-9a39-41ef-828c-25e04dd6b07d', 'jsonrpc': client.jsonrpc_version}
        rsps.add(responses.POST, client.url, json=expected, status=202)
        resp = client.poll(request_token='f86926fa-6535-4891-8d24-2cfc65d2a347')
        assert (resp.json() == expected)