aiida.backends.tests.tools.visualization package

Submodules

Tests for creating graphs (using graphviz)

class aiida.backends.tests.tools.visualization.test_graph.TestVisGraph(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Tests for verdi graph

__module__ = 'aiida.backends.tests.tools.visualization.test_graph'
create_provenance()[source]

create an example provenance graph

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_graph_add_edge()[source]

test adding an edge to the graph

test_graph_add_incoming()[source]

test adding a node and all its incoming nodes to a graph

test_graph_add_node()[source]

test adding a node to the graph

test_graph_add_outgoing()[source]

test adding a node and all its outgoing nodes to a graph

test_graph_graphviz_source()[source]

test the output of graphviz source

test_graph_graphviz_source_pstate()[source]

test the output of graphviz source, with the pstate_node_styles function

test_graph_init()[source]

test initialisation of Graph

test_graph_recurse_ancestors()[source]

test adding nodes and all its (recursed) incoming nodes to a graph

test adding nodes and all its (recursed) incoming nodes to a graph, but filter link types

test_graph_recurse_descendants()[source]

test adding nodes and all its (recursed) incoming nodes to a graph