Tariffs: fix tests
Follow-up to https://github.com/evcc-io/evcc/pull/13756
This commit is contained in:
parent
2a28de5a91
commit
f084dd0a7f
3 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -23,5 +23,6 @@ params:
|
|||
- preset: tariff-base
|
||||
render: |
|
||||
type: entsoe
|
||||
region: {{ .region }}
|
||||
securitytoken: {{ .securitytoken }}
|
||||
domain: {{ .domain }}
|
||||
{{ include "tariff-base" . }}
|
||||
|
|
|
|||
|
|
@ -24,4 +24,4 @@ params:
|
|||
render: |
|
||||
type: ngeso
|
||||
region: {{ .region }}
|
||||
postalcode: {{ .postalcode }}
|
||||
postcode: {{ .postcode }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue