18 lines
398 B
Python
18 lines
398 B
Python
"""Basic smoke tests for document serialization."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from bedit_core.models import Document
|
|
from bedit_core.serialization import load, save
|
|
|
|
|
|
@pytest.mark.unit
|
|
def test_json_round_trip(tmp_path, minimal_document: Document) -> None:
|
|
path = tmp_path / "document.json"
|
|
|
|
save(minimal_document, path)
|
|
|
|
assert load(path) == minimal_document
|