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