mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Begun implementing collection history system
This commit is contained in:
1 parent
75deded209
commit
e8d2c66e06
19 files changed
+744
-54
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user