Package runtime migrations and branding assets

This commit is contained in:
rob
2026-08-30 07:21:37 +01:00
parent 97a75d0243
commit af4aa713b9
51 changed files with 72 additions and 29 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
from roborto_accounting.config import default_logo_path
from roborto_accounting.reporting.documents.theme import DocumentTheme
from reportlab.platypus import Paragraph
def test_shared_theme_generates_deterministic_a4_pdf(tmp_path):
logo=__import__("pathlib").Path("assets/branding/logo-light.svg")
logo=default_logo_path()
theme=DocumentTheme(logo);story=theme.header(["accounts@roborto.net"])+theme.heading("INVOICE")
story.append(Paragraph("Correct accounting content",theme.body))
first=theme.build(tmp_path/"first.pdf",story)