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 -2
View File
@@ -1,6 +1,6 @@
from datetime import date
from decimal import Decimal
from pathlib import Path
from roborto_accounting.config import default_logo_path
from roborto_accounting.persistence.models import BusinessSettings
from roborto_accounting.reporting.documents.financial import render_cash_flow_pdf, render_profit_and_loss_pdf,render_transaction_ledger_pdf,render_trial_balance_pdf
@@ -11,7 +11,7 @@ from roborto_accounting.reporting.ledgers import LedgerRow,TrialBalanceRow,Trial
def test_financial_report_pdfs_render_supplied_values_and_paginate(tmp_path):
settings = BusinessSettings(trading_name="roborto", general_email="hello@roborto.net")
theme = DocumentTheme(Path("assets/branding/logo-light.svg"))
theme = DocumentTheme(default_logo_path())
rows = [
ProfitLossRow(str(index), f"Account {index} with a deliberately long descriptive name", "INCOME" if index % 2 else "EXPENSE", Decimal(index))
for index in range(1, 90)