[Tests] Adapted test_int_bom_no_xlsx_support

Now we fail if the XLSX couldn't be created
This commit is contained in:
Salvador E. Tropea 2024-01-05 07:47:54 -03:00
parent d5fa776dbf
commit cf88b27dde
1 changed files with 5 additions and 1 deletions

View File

@ -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)