diff options
| author | Max Nanis | 2026-09-02 23:31:52 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-02 23:31:52 -0700 |
| commit | 17ff15c06655717627da820417337c6b0b97de42 (patch) | |
| tree | 0cea68d654991b3742ba7447626c5e9ee639285a /tests/models/thl/test_product.py | |
| parent | d36994dd21a2bc025188a1ab58334915221f22cc (diff) | |
| download | generalresearch-17ff15c06655717627da820417337c6b0b97de42.tar.gz generalresearch-17ff15c06655717627da820417337c6b0b97de42.zip | |
Lots more tests/managers/thl - doing all the factory organization from create_dummy
Diffstat (limited to 'tests/models/thl/test_product.py')
| -rw-r--r-- | tests/models/thl/test_product.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/models/thl/test_product.py b/tests/models/thl/test_product.py index 446b59f..f1050bb 100644 --- a/tests/models/thl/test_product.py +++ b/tests/models/thl/test_product.py @@ -64,9 +64,11 @@ class TestProduct: # We're not excluding anything here, only in the "*Out" variants assert "id_int" in res - def test_init_db(self, product_manager: ProductManager): + def test_init_db( + self, product_factory: Callable[..., Product], product_manager: ProductManager + ): # By default, just a Pydantic instance doesn't have an id_int - instance = product_manager.create_dummy() + instance = product_factory() assert isinstance(instance.id_int, int) res = instance.model_dump_json() |
