def variants(cls):
     for v in variants(ServiceType):
         for w in (0, 10, 50, 100):
             yield cls(v, v.clone("canary"), w, name="{self.target.name}-{self.weight}")
 def variants(cls):
     for v in variants(ServiceType):
         for name, dfn in ("IMPLICIT", cls.IMPLICIT), ("EXPLICIT", cls.EXPLICIT):
             yield cls(v, dfn, name="{self.target.name}-%s" % name)
Esempio n. 3
0
 def variants(cls):
     yield cls(variants(MappingTest))
 def variants(cls):
     for st in variants(ServiceType):
         yield cls(st, name="{self.target.name}")
Esempio n. 5
0
 def variants(cls):
     for v in variants(ServiceType):
         yield cls(v, v.clone("target2"), name="{self.target.name}")