예제 #1
0
파일: api.py 프로젝트: timothyb89/stackviz
def _load_tree(provider, run_id):
    if (provider, run_id) in _cached_tree:
        return _cached_tree[provider, run_id]

    run = _load_run(provider, run_id)
    tree = reorganize(run)

    _cached_tree[provider, run_id] = tree
    return tree
예제 #2
0
def export_tempest_tree(stream, output_stream):
    converted = tempest_subunit.convert_stream(stream, strip_details=True)
    tree = tempest_subunit.reorganize(converted)
    json.dump(tree, output_stream, default=json_date_handler)
    output_stream.close()
예제 #3
0
def export_tempest_tree(stream, output_stream):
    converted = tempest_subunit.convert_stream(stream, strip_details=True)
    tree = tempest_subunit.reorganize(converted)
    json.dump(tree, output_stream, default=json_date_handler)
    output_stream.close()