Document native configuration inheritance
This commit is contained in:
@@ -442,6 +442,18 @@ func TestExamplesLoadAndValidate(t *testing.T) {
|
||||
if !exists || artifact.Enabled {
|
||||
t.Fatalf("testing-only disabled artifact = %#v", artifact)
|
||||
}
|
||||
recap := cfg.Pipeline.Scriptorium.Artifacts["session_recap"]
|
||||
if artifact.PromptID != "dnd.session_recap" ||
|
||||
artifact.PromptID != recap.PromptID ||
|
||||
artifact.ProfileID != recap.ProfileID ||
|
||||
artifact.ProfileID != "testing-placeholder" ||
|
||||
!reflect.DeepEqual(artifact.Inputs, recap.Inputs) ||
|
||||
artifact.Inputs["transcript"].Source != "narratio.transcript.final_trimmed" {
|
||||
t.Fatalf("testing notes did not inherit the testing recap prompt, profile, and inputs: notes=%#v recap=%#v", artifact, recap)
|
||||
}
|
||||
if artifact.OutputPath != "artifacts/testing-notes.md" || artifact.OutputPath == recap.OutputPath {
|
||||
t.Fatalf("testing notes output path = %q, want its distinct override", artifact.OutputPath)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user