Пример #1
0
def test_get_shared_graph_layouts(graph_id):
    graphspace = GraphSpace('*****@*****.**', 'user1')
    graphspace.set_api_host('localhost:8000')
    response = graphspace.get_shared_graph_layouts(graph_id=graph_id)
    assert response is not None and len(response['layouts']) >= 0
Пример #2
0
def test_get_shared_graph_layouts(graph_id):
    graphspace = GraphSpace('*****@*****.**', 'user1')
    layouts = graphspace.get_shared_graph_layouts(graph_id=graph_id)
    assert all(isinstance(x, Layout) for x in layouts)
    assert len(layouts) >= 0