Simple test suite added
This commit is contained in:
14
tests/unit/test_graphviz_util.py
Normal file
14
tests/unit/test_graphviz_util.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user