Initial roborto accounting implementation

This commit is contained in:
rob
2026-08-30 07:16:21 +01:00
commit 97a75d0243
145 changed files with 5525 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import csv,zipfile
from roborto_accounting.reporting.exports import export_csv,export_ods
def test_csv_and_ods_export_same_report_values(tmp_path):
rows=[{"Account":"Hosting","Amount":"12.34"}]
csv_path=export_csv(tmp_path/"report.csv",rows);ods_path=export_ods(tmp_path/"report.ods",rows)
with csv_path.open() as handle:assert list(csv.DictReader(handle))==rows
with zipfile.ZipFile(ods_path) as archive:
assert archive.read("mimetype")==b"application/vnd.oasis.opendocument.spreadsheet"
content=archive.read("content.xml").decode();assert "Hosting" in content and "12.34" in content