Skip to content

Commit 2683553

Browse files
test(watson): supply Product.description in flush hook fixtures
CI runs the V3_FEATURE_LOCATIONS=True matrix where BaseModel.save calls full_clean — Product.description is blank=False, so the bare fixture ValidationErrors out. Local default (V3 off) skips validation, masking this in the prior run.
1 parent ad40cb2 commit 2683553

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

unittests/test_watson_intermediate_flush.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ def setUp(self):
3535
self.prod_type = Product_Type.objects.create(name="Intermediate Flush PT")
3636
# Pre-create some products to add to the watson context manually.
3737
self.products = [
38-
Product.objects.create(name=f"intermediate-flush-prod-{i}", prod_type=self.prod_type)
38+
Product.objects.create(
39+
name=f"intermediate-flush-prod-{i}",
40+
description="intermediate flush fixture",
41+
prod_type=self.prod_type,
42+
)
3943
for i in range(5)
4044
]
4145

0 commit comments

Comments
 (0)