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