Adopt the shared party roster contract

This commit is contained in:
2026-11-30 00:03:54 +00:00
parent f923d75562
commit d1bf1fbfff
30 changed files with 233 additions and 238 deletions

View File

@@ -26,7 +26,7 @@ func TestCatalogDerivationKeepsNativeInputsAndRostersIndependent(t *testing.T) {
`))
writePipelineFixture(t, dir, "party.yml", canonicalPartyFixture)
explicit := "selected.yml"
writePipelineFixture(t, dir, explicit, `schema_version: narratio.party.v1
writePipelineFixture(t, dir, explicit, `schema_version: maximumdirect.rpg.party.v1
characters:
other:
player: {name: Selected Player}
@@ -70,7 +70,7 @@ characters:
if !strings.Contains(string(selectedContext.Party.Players), "Selected Player") || strings.Contains(string(defaultContext.Party.Players), "Selected Player") {
t.Fatal("players did not follow the independently selected roster")
}
if result := selectedContext.Party.Canonical.ConfigKitResult(); result == nil || result.Config.Characters["other"].Player.Name != "Selected Player" || result.Sources()[0].Path != filepath.Join(dir, explicit) {
if result := selectedContext.Party.Canonical.ConfigKitResult(); result == nil || result.Sources()[0].Path != filepath.Join(dir, explicit) {
t.Fatalf("party lost its actual selected native result: %+v", result)
}
afterPipeline, _ := json.Marshal(pipeline)