Repository navigation
test: cover HDF5 export and remaining DataExporter branches - #40
Merged
Merged
Conversation
export_hdf5 was untested because h5py/numpy are optional and absent in CI. Exercise it against in-memory stand-ins injected via sys.modules (numeric vs string columns, missing keys, empty data, missing-h5py error, dispatch), plus timestamp prefix, output dir creation and CSV metadata toggles. exporter.py coverage 68% -> 100%. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
自动维护改动
类型:维护
改动:新增 tests/test_export_hdf5.py 9 个用例:用 sys.modules 注入的轻量 h5py/numpy 替身覆盖 export_hdf5(数值/字符串列、缺键补 0、空数据、缺 h5py 报错、hdf5 分派),以及时间戳前缀、输出目录创建、CSV 元数据开关与空数据分支。exporter.py 覆盖率 68% → 100%,仅新增测试、无源码改动。
测试:通过(本地全量 476 passed / 1 skipped,ruff check + format 通过)
参考:无
本 PR 由每日维护任务生成,请人工 review 后再合并。
🤖 Generated with Claude Code