mirror of
https://github.com/docling-project/docling-core.git
synced 2026-05-17 13:10:44 +00:00
786f0c6833
* feat: Add ContentLayer attribute to designate items to body or furniture Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * introduce safer data gen mechanism, update chunking test data Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com> * Do not make test rely on order in yaml Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * chore: format fixes Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix: legacy_to_docling_doc must use content_layer Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Add content_layer in iterate_items Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Bump format version, add model_validator for old page_header,page_footer in body Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix: Change to before model_validator Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Update tests Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * Address review comments Signed-off-by: Christoph Auer <cau@zurich.ibm.com> --------- Signed-off-by: Christoph Auer <cau@zurich.ibm.com> Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com> Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
10 lines
196 B
Python
10 lines
196 B
Python
import os
|
|
|
|
from pydantic import TypeAdapter
|
|
|
|
GEN_TEST_DATA = TypeAdapter(bool).validate_python(os.getenv("DOCLING_GEN_TEST_DATA", 0))
|
|
|
|
|
|
def test_gen_test_data_flag():
|
|
assert not GEN_TEST_DATA
|