Mirror test layout, domcontentloaded waits, backup DB writes outside threads

This commit is contained in:
2026-10-05 09:41:22 +02:00
parent 8f6c5be314
commit 622795c9a0
46 changed files with 296 additions and 241 deletions
+22
View File
@@ -0,0 +1,22 @@
# retoor <retoor@molodetz.nl>
import io
from pypdf import PdfWriter
from molodetz.cli.commands import read_source
def test_read_markdown(tmp_path):
path = tmp_path / "x.md"
path.write_text("# Kop\n\nTekst", encoding="utf-8")
assert read_source(path).startswith("# Kop")
def test_read_pdf(tmp_path):
writer = PdfWriter()
writer.add_blank_page(width=200, height=200)
buffer = io.BytesIO()
writer.write(buffer)
path = tmp_path / "x.pdf"
path.write_bytes(buffer.getvalue())
assert read_source(path) == ""