chore(): small improvements

This commit is contained in:
ITQ
2026-02-22 19:19:44 +03:00
parent 4b69bb3af0
commit 385aae930f
5 changed files with 27 additions and 6 deletions
@@ -77,6 +77,7 @@ class DecideForFlagTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="control",
value="ctrl",
weight=Decimal("50.00"),
@@ -84,6 +85,7 @@ class DecideForFlagTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="treatment",
value="treat",
weight=Decimal("50.00"),
@@ -118,6 +120,7 @@ class DecideForFlagTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="control",
value="ctrl",
weight=Decimal("50.00"),
@@ -125,6 +128,7 @@ class DecideForFlagTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="treatment",
value="treat",
weight=Decimal("50.00"),
@@ -157,6 +161,7 @@ class TargetingRulesTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="control",
value="ctrl",
weight=Decimal("50.00"),
@@ -164,6 +169,7 @@ class TargetingRulesTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="treatment",
value="treat",
weight=Decimal("50.00"),
@@ -260,6 +266,7 @@ class ParticipationLimitsTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="control",
value="ctrl",
weight=Decimal("50.00"),
@@ -267,6 +274,7 @@ class ParticipationLimitsTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="treatment",
value="treat",
weight=Decimal("50.00"),
@@ -331,6 +339,7 @@ class PartialTrafficVariantDistributionTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="control",
value="ctrl",
weight=Decimal("10.00"),
@@ -338,6 +347,7 @@ class PartialTrafficVariantDistributionTest(TestCase):
)
variant_create(
experiment=exp,
user=self.owner,
name="treatment",
value="treat",
weight=Decimal("10.00"),
+2 -2
View File
@@ -62,8 +62,8 @@ class FeatureFlag(BaseModel):
RegexValidator(
regex=FLAG_KEY_PATTERN,
message=(
"Key must start with a lowercase letter and contain only "
"lowercase letters, digits, and underscores."
"Event type name must follow snake_case, "
"camelCase, or PascalCase."
),
)
],