Exemplo n.º 1
0
 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}")
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def variants(cls):
     yield cls(variants(MappingTest))
Exemplo n.º 4
0
 def variants(cls):
     for st in variants(ServiceType):
         yield cls(st, name="{self.target.name}")
Exemplo n.º 5
0
 def variants(cls):
     for v in variants(ServiceType):
         yield cls(v, v.clone("target2"), name="{self.target.name}")