aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_product_prod.py
diff options
context:
space:
mode:
authorGreg Stupp2026-10-08 04:41:46 +0000
committerGreg Stupp2026-10-08 04:41:46 +0000
commitc3fea9e8dd51e84316cdff985c0b433eb1f97c8f (patch)
treefc2f4d5bca0b4acd15b9153a2329531db55a9569 /tests/managers/thl/test_product_prod.py
parentab3b7d17a7b6d7e5033e2f1fd2008d16e356fcfe (diff)
parentb9ec91f4b64c6d3575287c1ea6dcc1182f3157c0 (diff)
downloadgeneralresearch-c3fea9e8dd51e84316cdff985c0b433eb1f97c8f.tar.gz
generalresearch-c3fea9e8dd51e84316cdff985c0b433eb1f97c8f.zip
Merges pull request #7 v3.7.1
Product Manager cached db filed + filters, orders, pagination
Diffstat (limited to 'tests/managers/thl/test_product_prod.py')
-rw-r--r--tests/managers/thl/test_product_prod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/managers/thl/test_product_prod.py b/tests/managers/thl/test_product_prod.py
index d584527..ed13718 100644
--- a/tests/managers/thl/test_product_prod.py
+++ b/tests/managers/thl/test_product_prod.py
@@ -51,7 +51,7 @@ class TestProductManagerGetMethods:
product_manager.get_by_uuids(
product_uuids=[p.id for p in products] + ["abc123"]
)
- assert "invalid uuid passed" in str(cm.value)
+ assert "invalid uuid" in str(cm.value)
def test_get_by_uuid_if_exists(
self, product_factory: Callable[..., Product], product_manager: ProductManager
@@ -61,7 +61,7 @@ class TestProductManagerGetMethods:
instance = product_manager.get_by_uuid_if_exists(product_uuid=products[0].id)
assert isinstance(instance, Product)
- instance = product_manager.get_by_uuid_if_exists(product_uuid="abc123")
+ instance = product_manager.get_by_uuid_if_exists(product_uuid=uuid4().hex)
assert instance is None
def test_get_by_uuids_if_exists(