diff --git a/tests/pre/conftest.py b/tests/pre/conftest.py index 4eac07a..32ec53d 100644 --- a/tests/pre/conftest.py +++ b/tests/pre/conftest.py @@ -6,6 +6,7 @@ StakingProvidersReservoir, TACoApplicationAgent, ) +from nucypher.policy.payment import SubscriptionManagerPayment @pytest.fixture(scope="module", autouse=True) @@ -24,3 +25,8 @@ def mock_reservoir( # uses TACoApplication - should we change this (in `nucypher`)? mock_agent = mock_contract_agency.get_agent(TACoApplicationAgent) mock_agent.get_staking_provider_reservoir = mock_reservoir + + +@pytest.fixture(scope="module", autouse=True) +def mock_payment_method(module_mocker): + module_mocker.patch.object(SubscriptionManagerPayment, "verify", return_value=True)