Complete session defaults within the ConfigKit lifecycle
This commit is contained in:
@@ -24,7 +24,7 @@ func TestPrepareMaterializesImportedDocumentsWithoutAuthoringFiles(t *testing.T)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
session, err := config.LoadSession(env.Config.SessionPath)
|
||||
session, err := config.LoadSessionWithOptions(env.Config.SessionPath, config.SessionLoadOptions{Campaign: campaign, CampaignPath: env.Config.CampaignPath})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -62,7 +62,7 @@ func TestPrepareMaterializesImportedDocumentsWithoutAuthoringFiles(t *testing.T)
|
||||
t.Fatalf("prepared campaign = %#v, %v", preparedCampaign, err)
|
||||
}
|
||||
preparedSession, err := config.LoadSession(filepath.Join(paths.InputsDir, "session.yml"))
|
||||
if err != nil || preparedSession.Title != "Imported title" || preparedSession.Inputs.SpeakersFile != "" {
|
||||
if err != nil || preparedSession.Title != "Imported title" || preparedSession.Inputs.SpeakersFile != filepath.Join(dir, "speakers.yml") {
|
||||
t.Fatalf("prepared session = %#v, %v", preparedSession, err)
|
||||
}
|
||||
record := findManifestInput(t, m.Inputs, "session_config")
|
||||
|
||||
Reference in New Issue
Block a user