Files
VA-Control-for-linux/va/my_pyfpdf/pyfpdf-1.7.2/tests/cover/test_issue70.py
T
maikandClaude Opus 4.8 a7c93fa266 Erster Commit: nativer Linux-Port aus macOS-Bytecode
Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux
auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird
das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/
scipy/PortAudio) kommen nativ aus Debian stretch.

Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei
Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode
zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per
.gitignore ausgeschlossen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-20 19:57:01 +02:00

32 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
"Basic test to check issue 70: raise an exception if add_page was not called"
import common
from fpdf import FPDF
import os, struct
def dotest(outputname, nostamp):
try:
# Portrait, millimeter units, A4 page size
pdf = FPDF("P", "mm", "A4")
# Set font: Times, normal, size 10
pdf.set_font('Times','', 12)
##pdf.add_page()
# Layout cell: 0 x 5 mm, text, no border, Left
pdf.cell(0,5,'Input 1 : ',border=0,align="L")
pdf.cell(0,5,'Input 2 : ', border=0,align="L")
pdf.cell(0,5,'Recomendation : ', border=0, align="L")
pdf.cell(0,5,'Data 1 :', border=0, align="L" )
pdf.cell(0,5,'Data 2 :', border=0, align="L" )
pdf.output(outputname,'F')
except RuntimeError as e:
assert e.args[0] == "FPDF error: No page open, you need to call add_page() first"
else:
raise RuntimeError("Exception not raised!")
if __name__ == "__main__":
common.testmain(__file__, dotest)