Load Management and Peak Shaving (#13207)

This commit is contained in:
andig 2024-04-27 10:50:35 +02:00 • committed by GitHub
parent 652cab3192
commit 26973a0d2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 1339 additions and 49 deletions

View file

@ -10,15 +10,12 @@ import (
"github.com/spf13/viper"
)
const sample = `
loadpoints:
- mode: off
`
func TestYamlOff(t *testing.T) {
var conf globalConfig
viper.SetConfigType("yaml")
if err := viper.ReadConfig(strings.NewReader(sample)); err != nil {
if err := viper.ReadConfig(strings.NewReader(`loadpoints:
- mode: off
`)); err != nil {
t.Error(err)
}