前端增加3:4选择
This commit is contained in:
1 parent
98c6127ef7
commit
b340fc7ad7
63 files changed
+51
-917
No files matched your search
@@ -35,3 +35,24 @@ func TestDefaultBillingPriceRulesFreezeOfficialCatalogMatchKeys(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultEvoLinkBillingSupportsThreeByFourAspectRatio(t *testing.T) {
|
||||
for _, rule := range DefaultBillingPriceRules() {
|
||||
if rule.Provider != "evolink" || rule.Capability != "image.generate" {
|
||||
continue
|
||||
}
|
||||
for _, dimension := range rule.Dimensions {
|
||||
if dimension.Key != "aspectRatio" {
|
||||
continue
|
||||
}
|
||||
for _, tier := range dimension.Tiers {
|
||||
if tier.Value == "3:4" && tier.Enabled && tier.StandardFactor == 1 {
|
||||
return
|
||||
}
|
||||
}
|
||||
t.Fatal("evolink aspectRatio dimension does not contain an enabled 3:4 tier with factor 1")
|
||||
}
|
||||
t.Fatal("evolink billing rule does not contain an aspectRatio dimension")
|
||||
}
|
||||
t.Fatal("default evolink image billing rule is missing")
|
||||
}
|
||||
Reference in new issue
Block a user