tests/test_function.py: pass pylint

pull/747/head
Maximilian Krueger 4 years ago
parent 9ed760c04a
commit 56cc042031
  1. 9
      tests/test_function.py

@ -1,7 +1,3 @@
from slither import Slither
from slither.core.declarations.function import FunctionType
from slither.core.solidity_types.elementary_type import ElementaryType
"""
tests for `slither.core.declarations.Function`.
tests that `tests/test_function.sol` gets translated into correct
@ -9,8 +5,13 @@ tests that `tests/test_function.sol` gets translated into correct
and that these objects behave correctly.
"""
from slither import Slither
from slither.core.declarations.function import FunctionType
from slither.core.solidity_types.elementary_type import ElementaryType
def test_functions():
# pylint: disable=too-many-statements
slither = Slither("tests/test_function.sol")
functions = slither.contracts_as_dict["TestFunction"].available_functions_as_dict()

Loading…
Cancel
Save