From 4ac65aa2a3ffffcd0746588e3073548ce39aa245 Mon Sep 17 00:00:00 2001 From: stuppie Date: Fri, 4 Sep 2026 13:15:06 -0600 Subject: user_factory silently ignored passed in product_id and generates a new product --- test_utils/models/thl/conftest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test_utils/models/thl/conftest.py') diff --git a/test_utils/models/thl/conftest.py b/test_utils/models/thl/conftest.py index 9cb68be..ff3bebd 100644 --- a/test_utils/models/thl/conftest.py +++ b/test_utils/models/thl/conftest.py @@ -646,6 +646,8 @@ def user_factory( ) -> User: if save: if product is None: + if product_id: + raise ValueError("this is broken") product = product_factory() product_user_id = product_user_id or uuid4().hex -- cgit v1.2.3