From cf88b27dded1b4692070d5d7530189ef569482f3 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 5 Jan 2024 07:47:54 -0300 Subject: [PATCH] [Tests] Adapted test_int_bom_no_xlsx_support Now we fail if the XLSX couldn't be created --- tests/test_plot/force_xlsx_error.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_plot/force_xlsx_error.py b/tests/test_plot/force_xlsx_error.py index 75be6354..0e8ed47a 100755 --- a/tests/test_plot/force_xlsx_error.py +++ b/tests/test_plot/force_xlsx_error.py @@ -19,5 +19,9 @@ logger.debug("Testing bom_writer without xlsxwriter") # Import the module to test from kibot.bom.bom_writer import write_bom +from kibot.error import KiPlotError # Run it -write_bom('bogus', 'xlsx', [], [], {}) +try: + write_bom('bogus', 'xlsx', [], [], {}) +except KiPlotError as e: + logger.error(e)