15 lines
373 B
Python
15 lines
373 B
Python
"""Basic smoke tests for the core model."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from bedit_core.models import Document, GraphImplementation
|
|
|
|
|
|
@pytest.mark.unit
|
|
def test_minimal_document_has_graph_root(minimal_document: Document) -> None:
|
|
root = next(iter(minimal_document.root.values()))
|
|
|
|
assert isinstance(root.implementation, GraphImplementation)
|