Adopt the shared party roster contract
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user