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/managers/thl/test_task_status.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/managers/thl/test_task_status.py')
| -rw-r--r-- | tests/managers/thl/test_task_status.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/managers/thl/test_task_status.py b/tests/managers/thl/test_task_status.py index 9846ce0..4a401fa 100644 --- a/tests/managers/thl/test_task_status.py +++ b/tests/managers/thl/test_task_status.py @@ -40,18 +40,22 @@ finish3 = start3 + timedelta(minutes=5) @pytest.fixture(scope="session") -def bp1(product_manager: ProductManager) -> Product: +def bp1( + product_factory: Callable[..., Product], product_manager: ProductManager +) -> Product: # user wallet disabled, payout xform NULL - return product_manager.create_dummy( + return product_factory( user_wallet_config=UserWalletConfig(enabled=False), payout_config=PayoutConfig(), ) @pytest.fixture(scope="session") -def bp2(product_manager: ProductManager) -> Product: +def bp2( + product_factory: Callable[..., Product], product_manager: ProductManager +) -> Product: # user wallet disabled, payout xform 40% - return product_manager.create_dummy( + return product_factory( user_wallet_config=UserWalletConfig(enabled=False), payout_config=PayoutConfig( payout_transformation=PayoutTransformation( @@ -63,9 +67,11 @@ def bp2(product_manager: ProductManager) -> Product: @pytest.fixture(scope="session") -def bp3(product_manager: ProductManager) -> Product: +def bp3( + product_factory: Callable[..., Product], product_manager: ProductManager +) -> Product: # user wallet enabled, payout xform 50% - return product_manager.create_dummy( + return product_factory( user_wallet_config=UserWalletConfig(enabled=True), payout_config=PayoutConfig( payout_transformation=PayoutTransformation( |
