Skip to content

Commit

Permalink
fix: remove mistaken fixture decorator (yearn#164)
Browse files Browse the repository at this point in the history
* test: removed fixture decorator from test (mistake from yearn#134)
* fix: add mgmt to Vault in test
  • Loading branch information
fubuloubu authored Jan 27, 2021
1 parent 6a57e22 commit cfb37d6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/functional/vault/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@


@pytest.fixture
def vault(gov, token, Vault):
def vault(gov, management, token, Vault):
# NOTE: Because the fixture has tokens in it already
vault = gov.deploy(Vault)
vault.initialize(
token, gov, gov, token.symbol() + " yVault", "yv" + token.symbol(), gov
)
vault.setDepositLimit(2 ** 256 - 1, {"from": gov})
vault.setManagement(management, {"from": gov})
yield vault


Expand Down Expand Up @@ -307,8 +308,7 @@ def test_reporting_gains_without_fee(vault, token, strategy, gov, rando):
vault.report(gain, 0, 0, {"from": strategy})


@pytest.fixture
def test_withdrawalQueue(gov, management, vault, strategy, other_strategy):
def test_withdrawalQueue(chain, gov, management, vault, strategy, other_strategy):
vault.addStrategy(strategy, 100, 10, 1000, {"from": gov})
vault.addStrategy(other_strategy, 100, 10, 1000, {"from": gov})

Expand Down Expand Up @@ -347,9 +347,7 @@ def test_withdrawalQueue(gov, management, vault, strategy, other_strategy):
assert vault.withdrawalQueue(1) == other_strategy


def test_update_debtRatio_to_add_second_strategy(
chain, gov, vault, strategy, other_strategy
):
def test_update_debtRatio_to_add_second_strategy(gov, vault, strategy, other_strategy):

vault.addStrategy(strategy, 10_000, 0, 0, {"from": gov})

Expand Down

0 comments on commit cfb37d6

Please sign in to comment.