diff options
| author | Max Nanis | 2026-09-02 17:40:18 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-02 17:40:18 -0700 |
| commit | ad620d7586640534a092672b8f3cddf6eff5604b (patch) | |
| tree | 8fa5161ecf19ad08aafbc4961572223f77770a04 /test_utils/models/conftest.py | |
| parent | 97b14e2f133bda76f548ec1a522d9582c657d736 (diff) | |
| download | generalresearch-ad620d7586640534a092672b8f3cddf6eff5604b.tar.gz generalresearch-ad620d7586640534a092672b8f3cddf6eff5604b.zip | |
gr mangers all green ✅
Diffstat (limited to 'test_utils/models/conftest.py')
| -rw-r--r-- | test_utils/models/conftest.py | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/test_utils/models/conftest.py b/test_utils/models/conftest.py index ed4da08..d71593f 100644 --- a/test_utils/models/conftest.py +++ b/test_utils/models/conftest.py @@ -286,36 +286,7 @@ def session( return session -@pytest.fixture -def product(request: Request, product_manager: ProductManager) -> Product: - - team = getattr(request, "team", None) - business = getattr(request, "business", None) - - return product_manager.create_dummy( - team_id=team.uuid if team else None, - business_id=business.uuid if business else None, - ) - - -@pytest.fixture -def product_factory(product_manager: ProductManager) -> Callable[..., Product]: - - def _inner( - team: Team | None = None, - business: Business | None = None, - commission_pct: Decimal = Decimal("0.05"), - ) -> Product: - return product_manager.create_dummy( - team_id=team.uuid if team else None, - business_id=business.uuid if business else None, - commission_pct=commission_pct, - ) - - return _inner - - -@pytest.fixture +@pytest.fixture() def payout_config(request: Request) -> PayoutConfig: from generalresearch.models.thl.product import ( PayoutConfig, |
