Pylint and black

pull/1816/head
webthethird 2 years ago
parent 386c3e14a3
commit 20f5825fb6
  1. 12
      tests/unit/utils/test_upgradeability_util.py

@ -22,8 +22,16 @@ def test_upgrades_compare() -> None:
sl = Slither(os.path.join(TEST_DATA_DIR, "TestUpgrades-0.8.2.sol"))
v1 = sl.get_contract_from_name("ContractV1")[0]
v2 = sl.get_contract_from_name("ContractV2")[0]
missing_vars, new_vars, tainted_vars, new_funcs, modified_funcs, tainted_funcs, tainted_contracts = compare(v1, v2)
assert len(missing_vars) == 0
(
missing_vars,
new_vars,
tainted_vars,
new_funcs,
modified_funcs,
tainted_funcs,
tainted_contracts,
) = compare(v1, v2)
assert len(missing_vars) == len(tainted_contracts) == 0
assert new_vars == [v2.get_state_variable_from_name("stateC")]
assert tainted_vars == [
v2.get_state_variable_from_name("stateB"),

Loading…
Cancel
Save