The SQLite store keeps every chapter revision, so a chapter that the site removes stays in the book. The merge puts new chapters after the chapter that comes before them on the site. Diffs compare text, not HTML, and replacement rules run on chapter HTML when a book is built.
10 lines
317 B
Python
10 lines
317 B
Python
"""Point every directory at a temporary folder before the app modules load."""
|
|
|
|
import os
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
_tmp = Path(tempfile.mkdtemp(prefix="bindery-tests-"))
|
|
for name, sub in [("CONFIG_DIR", "config"), ("INGEST_DIR", "ingest"), ("TMP_DIR", "tmp")]:
|
|
os.environ[name] = str(_tmp / sub)
|