## Test coverage: render
Test coverage: render.py pandoc defaults generation¶
Add tests for load_render_config, generate_pandoc_defaults, write_pandoc_defaults in src/projio/render.py.
What to test¶
load_render_config(): reads .projio/render.yml, returns structured config. Test: valid file, missing file, minimal file.generate_pandoc_defaults(): takes render config → returns pandoc-defaults.yaml content. Test: default CSL, custom bibliography, bib_sources list.write_pandoc_defaults(): writes to .projio/render/pandoc-defaults.yaml. Test: file created, content matches.
Where¶
- Source:
src/projio/render.py - Tests: create
tests/test_render.py
Approach¶
Use tmp_path fixtures. Write .projio/render.yml with test data, call functions, verify output YAML structure. No pandoc binary needed — these functions just generate config files.
Related Notes¶
- issue-arash-20260412-013402-247547.md — Sister issue in the same test coverage batch — covers sync.py
- issue-arash-20260412-013344-955432.md — Sister issue in the same test coverage batch — covers config.py
Batch Result¶
- status: done
- batch queue_id:
fa9ae36ce1aa - session:
bf8a344f-5f23-4791-ab7b-17a624a7fc7f - batch duration: 441.8s