Begun implementing collection history system

This commit is contained in:
patben8 committed 2026-07-09 10:20:49 +02:00
1 parent 75deded209
commit e8d2c66e06
19 files changed
+744 -54

No files matched your search

+5
View File
@@ -15,6 +15,7 @@ two invariants against a COPY of the real collection:
Run: `python test_save_fidelity.py` in the backend venv (see run_tests.sh).
"""
import os
import shutil
import sys
import tempfile
@@ -23,6 +24,10 @@ from pathlib import Path
warnings.filterwarnings("ignore")
# Isolate version-history commits (triggered by every save()) to a throwaway dir
# so the tests never touch the real app-data dir. Set before importing konduktor.
os.environ["KONDUKTOR_DATA_DIR"] = tempfile.mkdtemp(prefix="konduktor-fidelity-appdata-")
REAL = Path(__file__).resolve().parents[1] / "collection.nml"
from konduktor.collection_service import CollectionService # noqa: E402