diff options
| author | stuppie | 2026-09-04 13:15:06 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-04 13:15:06 -0600 |
| commit | 4ac65aa2a3ffffcd0746588e3073548ce39aa245 (patch) | |
| tree | 5632339b59a13ff2b14c4bb4d0de68f9b06827cd | |
| parent | c720350aaf92d68d2f84ba05702b05acb448fa00 (diff) | |
| download | generalresearch-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.py | 2 |
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 |
