Preserve derived publication and preparation evidence
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user