Closed sonoh5n closed 2 weeks ago
Excelinvoiceに空のシートが含まれていた場合エラーが発生するため、空シートが含まれていた場合、処理対象に含めないように変更。
tests/test_invoicefile.py::test_read_excelinvoice
Coverage Report FileStmtsMissCoverMissingsrc/rdetoolkit __init__.py50100% __main__.py00100% cli.py140100% config.py861187%70, 82, 85, 140, 179–181, 189–191, 194 csv2graph.py1181079%39–70, 103–157, 179–190, 235–290 exceptions.py590100% img2thumb.py31197%32 invoicefile.py3966584%112–114, 133–141, 162–176, 215–216, 223, 226, 286–287, 458–463, 474, 540–541, 590, 625, 627, 640–649, 690, 699, 741, 744–745, 754–757, 763–765, 788 modeproc.py113992%57, 117, 185, 196–200, 268 rde2util.py1952587%42–49, 107, 114, 169–172, 328–329, 430, 437–438, 444, 481, 747–751 rdelogger.py60788%70–76, 121, 164–166 validation.py1532286%52–53, 122–123, 158–161, 167–168, 176–185, 188, 277 workflows.py34974%139–142, 152–156src/rdetoolkit/cmd __init__.py00100% command.py1541392%20, 61–64, 97–100, 127–129, 138 default.py40100% src/rdetoolkit/impl __init__.py00100% compressed_controller.py93298%80, 173 input_controller.py1181686%53, 122, 128–129, 144, 153–154, 158–159, 163–164, 195–196, 220, 258–259src/rdetoolkit/interfaces __init__.py00100% filechecker.py70100% src/rdetoolkit/models __init__.py00100% invoice_schema.py153696%54, 134, 137, 366, 376, 384 metadata.py33779%26–32 rde2types.py68297%134–135TOTAL189430284%
issue
34 エクセルインボイスモードで、Excelファイルに空のシートがあるとエラーになる
変更内容
Excelinvoiceに空のシートが含まれていた場合エラーが発生するため、空シートが含まれていた場合、処理対象に含めないように変更。
検証内容
tests/test_invoicefile.py::test_read_excelinvoice