From 0f10fb705501cbf7ec610b6be51aadbd686b9e61 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Thu, 2 Nov 2023 19:19:14 +0000 Subject: [PATCH] chart: add more tests --- .../test/comparison/test_chart_crossing07.py | 78 ++++++++++++++++++ .../xlsx_files/chart_crossing07.xlsx | Bin 0 -> 9606 bytes 2 files changed, 78 insertions(+) create mode 100644 xlsxwriter/test/comparison/test_chart_crossing07.py create mode 100644 xlsxwriter/test/comparison/xlsx_files/chart_crossing07.xlsx diff --git a/xlsxwriter/test/comparison/test_chart_crossing07.py b/xlsxwriter/test/comparison/test_chart_crossing07.py new file mode 100644 index 000000000..c3688ea43 --- /dev/null +++ b/xlsxwriter/test/comparison/test_chart_crossing07.py @@ -0,0 +1,78 @@ +############################################################################### +# +# Tests for XlsxWriter. +# +# SPDX-License-Identifier: BSD-2-Clause +# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org +# + +from ..excel_comparison_test import ExcelComparisonTest +from ...workbook import Workbook + + +class TestCompareXLSXFiles(ExcelComparisonTest): + """ + Test file created by XlsxWriter against a file created by Excel. + + """ + + def setUp(self): + self.set_filename("chart_crossing07.xlsx") + + self.ignore_elements = {"xl/charts/chart1.xml": [")@RN0oq6Bq`}9(jfrY~bAOMg6000F5MUwQu76<@b!vO#|fO(*fn4PV& ziLJAqs)xOalP;^fjWv1p43PdE00#Q~{~rJ6cA!MHSH6uMvx({eBc`0*p%+LoRucmA zd?U;IRV8nfT4!z3?$+KkpA8LWlxkiQpLz|KKy`IW-)U5LEvBM?PL%_P;X}>M_}b!F zAC`q9vqS@2b>tQ1_-#O!>F8Bs_u(RttEg79ieK{X^OGJTBLCnc{Y{xQQ7TH^ws0?s zNkjN+2X4>hk!d8J^~x{$quq3mF>3;>DMYU^(GT{UmtuzAdA&ycY&6}(Wc^Wwwux6e zTq@(JRLxJ*NkdILz|nCOQzNF8R2$bf26F`hc#tnjCPH5VG&Bl-aNK^4k}#E=+`QB6 zKX42{D35dHu71};O=h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