Tariffs: fix tests

Follow-up to https://github.com/evcc-io/evcc/pull/13756
This commit is contained in:
andig 2024-06-29 16:19:44 +02:00
parent 2a28de5a91
commit f084dd0a7f
3 changed files with 5 additions and 2 deletions

View file

@ -12,6 +12,8 @@ var acceptable = []string{
"invalid zipcode", // grünstromindex
"invalid apikey format", // octopusenergy
"missing region", // octopusenergy
"missing securitytoken", // entsoe
"cannot define region and postcode simultaneously", // ngeso
}
func TestTemplates(t *testing.T) {

View file

@ -23,5 +23,6 @@ params:
- preset: tariff-base
render: |
type: entsoe
region: {{ .region }}
securitytoken: {{ .securitytoken }}
domain: {{ .domain }}
{{ include "tariff-base" . }}

View file

@ -24,4 +24,4 @@ params:
render: |
type: ngeso
region: {{ .region }}
postalcode: {{ .postalcode }}
postcode: {{ .postcode }}