def test_cyclical_graph_error():
    g = nx.DiGraph()
    g.add_node('a')
    g.add_node('b')
    g.add_edge('a', 'b')
    g.add_edge('b', 'a')
    with pytest.raises(ValueError):
        compute_build_graph.order_build(g)
def test_order_build(testing_graph):
    order = compute_build_graph.order_build(testing_graph)
    assert order.index('b-on-linux') > order.index('a-on-linux')
    assert order.index('c3itest-c-on-linux') > order.index('b-on-linux')