aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-09-04 13:15:06 -0600
committerstuppie2026-09-04 13:15:06 -0600
commit4ac65aa2a3ffffcd0746588e3073548ce39aa245 (patch)
tree5632339b59a13ff2b14c4bb4d0de68f9b06827cd
parentc720350aaf92d68d2f84ba05702b05acb448fa00 (diff)
downloadgeneralresearch-4ac65aa2a3ffffcd0746588e3073548ce39aa245.tar.gz
generalresearch-4ac65aa2a3ffffcd0746588e3073548ce39aa245.zip
user_factory silently ignored passed in product_id and generates a new product
-rw-r--r--test_utils/models/thl/conftest.py2
1 files changed, 2 insertions, 0 deletions
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