Skip to content

Commit

Permalink
test: adjusted lens manager
Browse files Browse the repository at this point in the history
  • Loading branch information
heswithme committed Oct 16, 2024
1 parent a1acc63 commit 7f00170
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions tests/unitary/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ def rate_manager(request, rewards_handler):
return _rate_manager


@pytest.fixture(params=[CURVE_DAO, boa.env.generate_address("lens_manager")])
def lens_manager(request, rewards_handler):
_lens_manager = request.param
if _lens_manager != CURVE_DAO:
rewards_handler.grantRole(rewards_handler.LENS_MANAGER(), _lens_manager, sender=CURVE_DAO)

return _lens_manager


@pytest.fixture(params=[CURVE_DAO, boa.env.generate_address("recovery_manager")])
def recovery_manager(request, rewards_handler):
_recovery_manager = request.param
Expand Down
4 changes: 2 additions & 2 deletions tests/unitary/rewards_handler/test_set_stablecoin_lens.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import boa


def test_default_behavior(rewards_handler, rate_manager):
def test_default_behavior(rewards_handler, lens_manager):
new_lens = boa.env.generate_address()
rewards_handler.set_stablecoin_lens(new_lens, sender=rate_manager)
rewards_handler.set_stablecoin_lens(new_lens, sender=lens_manager)
events = rewards_handler.get_logs()

# Verify event emission
Expand Down

0 comments on commit 7f00170

Please sign in to comment.