Package runtime migrations and branding assets
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user