Skip to content

Commit

Permalink
chore: bump black version (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffel authored Apr 29, 2021
1 parent aa9630a commit 5ec436b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
black==19.10b0
black==20.8b1
eth-brownie>=1.14.5,<2.0.0
11 changes: 10 additions & 1 deletion tests/functional/vault/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@ def test_vault_reinitialization(guardian, gov, rewards, token, Vault):
],
)
def test_vault_setParams(
chain, gov, guardian, management, vault, rando, getter, setter, val, guard_allowed,
chain,
gov,
guardian,
management,
vault,
rando,
getter,
setter,
val,
guard_allowed,
):
if val is None:
# Can't access fixtures, so use None to mean any random address
Expand Down
17 changes: 13 additions & 4 deletions tests/functional/vault/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ def test_liquidation_after_hack(chain, gov, vault, token, TestStrategy):
def strategy_with_wrong_vault(gov, token, vault, Vault, TestStrategy):
otherVault = gov.deploy(Vault)
otherVault.initialize(
token, gov, gov, gov, token.symbol() + " yVault", "yv" + token.symbol(), gov,
token,
gov,
gov,
gov,
token.symbol() + " yVault",
"yv" + token.symbol(),
gov,
)
assert otherVault.token() == token
assert otherVault != vault
Expand Down Expand Up @@ -312,7 +318,8 @@ def test_ordering(gov, vault, TestStrategy, rando):
# Can't add un-approved strategies
with brownie.reverts():
vault.setWithdrawalQueue(
strategies + [ZERO_ADDRESS] * (20 - len(strategies)), {"from": gov},
strategies + [ZERO_ADDRESS] * (20 - len(strategies)),
{"from": gov},
)

[vault.addStrategy(s, 100, 10, 20, 1000, {"from": gov}) for s in strategies]
Expand All @@ -325,10 +332,12 @@ def test_ordering(gov, vault, TestStrategy, rando):
# NOTE: Not just anyone can do this
with brownie.reverts():
vault.setWithdrawalQueue(
strategies + [ZERO_ADDRESS] * (20 - len(strategies)), {"from": rando},
strategies + [ZERO_ADDRESS] * (20 - len(strategies)),
{"from": rando},
)
vault.setWithdrawalQueue(
strategies + [ZERO_ADDRESS] * (20 - len(strategies)), {"from": gov},
strategies + [ZERO_ADDRESS] * (20 - len(strategies)),
{"from": gov},
)

for idx, strategy in enumerate(strategies):
Expand Down

0 comments on commit 5ec436b

Please sign in to comment.