2026-08-16 23:40:41 +03:00

10 lines
456 B
Python

from lawsynth_notebook.display import render_json
from lawsynth_notebook.export import export_html, export_json, reproducible_notebook_cell
def test_exports_are_static_and_reproducible(tmp_path):
view = render_json("x", {"a": 1})
assert export_html(view, tmp_path / "x.html").exists()
assert export_json(view, tmp_path / "x.json").read_text() == '{"a":1}\n'
assert reproducible_notebook_cell(view)["metadata"]["lawsynth"]["reproducible"]