Preserve derived publication and preparation evidence

This commit is contained in:
2026-11-20 04:49:29 +00:00
parent 065a615e5f
commit b537cb38ae
23 changed files with 135 additions and 100 deletions

View File

@@ -1402,7 +1402,7 @@ func testConfig(t *testing.T) *config.Config {
CampaignPath: campaignPath,
SessionPath: sessionPath,
Party: config.ResolvedParty{
Canonical: partyDocument,
Canonical: partyDocument, Players: projectedTestPlayers(t, partyDocument),
Source: config.PartySource{
Path: filepath.Join(cfgDir, "party.yml"),
ConfigPath: campaignPath,
@@ -1515,3 +1515,12 @@ func boolPtr(v bool) *bool {
p := v
return &p
}
func projectedTestPlayers(t *testing.T, party *config.CanonicalParty) []byte {
t.Helper()
data, err := party.PlayersYAML()
if err != nil {
t.Fatal(err)
}
return data
}