Add D&D spells pipeline integration tests
This commit is contained in:
11
internal/modules/extract/dnd/spells/testdata/pipeline.yml
vendored
Normal file
11
internal/modules/extract/dnd/spells/testdata/pipeline.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
version: 1
|
||||
pipelines:
|
||||
dnd-spells-fixture:
|
||||
input: seriatim
|
||||
chunk: fake/chunk
|
||||
artifacts:
|
||||
spells:
|
||||
extract: dnd/spells
|
||||
merge: appendorder
|
||||
normalize: noop
|
||||
output: json
|
||||
29
internal/modules/extract/dnd/spells/testdata/seriatim_spell_session.json
vendored
Normal file
29
internal/modules/extract/dnd/spells/testdata/seriatim_spell_session.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"metadata": {
|
||||
"id": "spell-session",
|
||||
"title": "Synthetic D&D spell session"
|
||||
},
|
||||
"segments": [
|
||||
{
|
||||
"id": "seg-001",
|
||||
"start": 0,
|
||||
"end": 4,
|
||||
"speaker": "Alice",
|
||||
"text": "Aria raises her holy symbol and casts Cure Wounds."
|
||||
},
|
||||
{
|
||||
"id": "seg-002",
|
||||
"start": 4,
|
||||
"end": 8,
|
||||
"speaker": "DM",
|
||||
"text": "The bandit mage casts Shield as the blow lands."
|
||||
},
|
||||
{
|
||||
"id": "seg-003",
|
||||
"start": 8,
|
||||
"end": 12,
|
||||
"speaker": "Bob",
|
||||
"text": "Borin points at the wight and casts Fire Bolt."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user