Testing
Unit & Integration Tests
Backend (Python)
All core functionality is covered by tests under service/tests/ using pytest.
These tests validate:
Regex patterns (NAME_PATTERN, TYPE_PATTERN, CITYDATE_PATTERN)
Paragraph extraction and styling (_extract_paragraphs, _style_special_sections, etc.)
Front-matter and body-section detection (_check_front_matter, _check_body_sections)
Table of contents processing (_extract_toc, _filter_out_toc_entries)
Structure‐scoring logic (_calculate_structure_metrics, _generate_recommendations)
Title-page and internal-page validation (_validate_naslovna_stran, _validate_notranja_stran)
Frontend
No automated tests at this time. UI validation is performed manually in the browser.
Last updated