mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
hugolib: Add ConfigSourceDescriptor
To prepare for config in themes See #4490
This commit is contained in:
@@ -149,7 +149,7 @@ func TestCaseInsensitiveConfigurationVariations(t *testing.T) {
|
||||
|
||||
caseMixingTestsWriteCommonSources(t, mm)
|
||||
|
||||
cfg, err := LoadConfig(mm, "", "config.toml")
|
||||
cfg, err := LoadConfig(ConfigSourceDescriptor{Fs: mm})
|
||||
require.NoError(t, err)
|
||||
|
||||
fs := hugofs.NewFrom(mm, cfg)
|
||||
@@ -260,7 +260,7 @@ func doTestCaseInsensitiveConfigurationForTemplateEngine(t *testing.T, suffix st
|
||||
|
||||
caseMixingTestsWriteCommonSources(t, mm)
|
||||
|
||||
cfg, err := LoadConfig(mm, "", "config.toml")
|
||||
cfg, err := LoadConfigDefault(mm)
|
||||
require.NoError(t, err)
|
||||
|
||||
fs := hugofs.NewFrom(mm, cfg)
|
||||
|
Reference in New Issue
Block a user