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:
1 parent
dd2fa380f2
commit
bc8bdfac3c
1 file changed
+6
-4
@@ -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={}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user