1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
# SPDX-FileCopyrightText: 2024 pydot contributors
#
# SPDX-License-Identifier: MIT
import typing as T
import pytest
import pydot.core
@pytest.fixture
def objdict() -> T.Dict[str, T.Any]:
return {
"attributes": {},
"name": "G",
"type": "graph",
"strict": False,
"suppress_disconnected": False,
"simplify": False,
"current_child_sequence": 3,
"nodes": {
"3": [
{
"attributes": {},
"type": "node",
"parent_graph": None,
"sequence": 1,
"name": "3",
"port": None,
}
],
"16": [
{
"attributes": {},
"type": "node",
"parent_graph": None,
"sequence": 2,
"name": "16",
"port": None,
}
],
},
"edges": {},
"subgraphs": {},
}
@pytest.fixture
def graph_directed() -> pydot.core.Graph:
return pydot.core.Graph("testgraph", graph_type="digraph")
|