File: test_serialize.py

package info (click to toggle)
python-statmake 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: python: 1,107; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from pathlib import Path

from statmake.classes import Stylespace


def test_serialize(datadir: Path) -> None:
    stylespace = Stylespace.from_file(datadir / "Test.stylespace")
    stylespace_rt = Stylespace.from_dict(stylespace.to_dict())
    assert stylespace == stylespace_rt