15 lines
357 B
Python
15 lines
357 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from bedit_core.models import Document
|
|
from bedit_util.graphviz import document_to_dot
|
|
|
|
|
|
@pytest.mark.unit
|
|
def test_dot_contains_component_name_path(minimal_document: Document) -> None:
|
|
dot = document_to_dot(minimal_document, "Root")
|
|
|
|
assert 'label="Root"' in dot
|
|
assert 'xlabel="Root"' in dot
|