From 5ec436b9a6f35a9563194986227e652b28d8db88 Mon Sep 17 00:00:00 2001 From: Steffel <2143646+steffenix@users.noreply.github.com> Date: Thu, 29 Apr 2021 07:14:20 +0200 Subject: [PATCH] chore: bump black version (#304) --- requirements-dev.txt | 2 +- tests/functional/vault/test_config.py | 11 ++++++++++- tests/functional/vault/test_strategies.py | 17 +++++++++++++---- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 3059c1e7..07b68587 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,2 +1,2 @@ -black==19.10b0 +black==20.8b1 eth-brownie>=1.14.5,<2.0.0 diff --git a/tests/functional/vault/test_config.py b/tests/functional/vault/test_config.py index 9b1e6e87..ceaedee5 100644 --- a/tests/functional/vault/test_config.py +++ b/tests/functional/vault/test_config.py @@ -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 diff --git a/tests/functional/vault/test_strategies.py b/tests/functional/vault/test_strategies.py index 108cddca..74d61808 100644 --- a/tests/functional/vault/test_strategies.py +++ b/tests/functional/vault/test_strategies.py @@ -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 @@ -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] @@ -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):