From bc8bdfac3cc869aba3f230be7c9e5a52f72c5539 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 26 Jan 2026 10:37:57 +0100 Subject: [PATCH] Refactor payload creation in test_wp26_comprehensive.py - Updated the `make_chunk_payloads` function calls to use a structured `note` parameter instead of separate `frontmatter` and `chunks` arguments, improving clarity and consistency in payload construction. - Added comments to clarify the function signature for better understanding of the parameters being passed. --- scripts/test_wp26_comprehensive.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/test_wp26_comprehensive.py b/scripts/test_wp26_comprehensive.py index 384f924..b6b83b3 100644 --- a/scripts/test_wp26_comprehensive.py +++ b/scripts/test_wp26_comprehensive.py @@ -172,10 +172,11 @@ Text. chunks = strategy_by_heading(blocks, config, note_id="test-note") # Erstelle Payloads + # Signatur: make_chunk_payloads(note, note_path, chunks_from_chunker, **kwargs) payloads = make_chunk_payloads( - frontmatter={"type": "experience"}, + note={"frontmatter": {"type": "experience"}}, note_path="test.md", - chunks=chunks, + chunks_from_chunker=chunks, file_path="test.md", types_cfg={} ) @@ -224,10 +225,11 @@ Text. } chunks = strategy_by_heading(blocks, config, note_id="test-note") + # Signatur: make_chunk_payloads(note, note_path, chunks_from_chunker, **kwargs) payloads = make_chunk_payloads( - frontmatter={"type": "experience"}, + note={"frontmatter": {"type": "experience"}}, note_path="test.md", - chunks=chunks, + chunks_from_chunker=chunks, file_path="test.md", types_cfg={} )