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.
This commit is contained in:
parent
dd2fa380f2
commit
bc8bdfac3c
|
|
@ -172,10 +172,11 @@ Text.
|
||||||
chunks = strategy_by_heading(blocks, config, note_id="test-note")
|
chunks = strategy_by_heading(blocks, config, note_id="test-note")
|
||||||
|
|
||||||
# Erstelle Payloads
|
# Erstelle Payloads
|
||||||
|
# Signatur: make_chunk_payloads(note, note_path, chunks_from_chunker, **kwargs)
|
||||||
payloads = make_chunk_payloads(
|
payloads = make_chunk_payloads(
|
||||||
frontmatter={"type": "experience"},
|
note={"frontmatter": {"type": "experience"}},
|
||||||
note_path="test.md",
|
note_path="test.md",
|
||||||
chunks=chunks,
|
chunks_from_chunker=chunks,
|
||||||
file_path="test.md",
|
file_path="test.md",
|
||||||
types_cfg={}
|
types_cfg={}
|
||||||
)
|
)
|
||||||
|
|
@ -224,10 +225,11 @@ Text.
|
||||||
}
|
}
|
||||||
chunks = strategy_by_heading(blocks, config, note_id="test-note")
|
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(
|
payloads = make_chunk_payloads(
|
||||||
frontmatter={"type": "experience"},
|
note={"frontmatter": {"type": "experience"}},
|
||||||
note_path="test.md",
|
note_path="test.md",
|
||||||
chunks=chunks,
|
chunks_from_chunker=chunks,
|
||||||
file_path="test.md",
|
file_path="test.md",
|
||||||
types_cfg={}
|
types_cfg={}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user