diff --git a/tests/e2e/detectors/test_detectors.py b/tests/e2e/detectors/test_detectors.py index 77c01851f..0028f18bf 100644 --- a/tests/e2e/detectors/test_detectors.py +++ b/tests/e2e/detectors/test_detectors.py @@ -11,9 +11,6 @@ from crytic_compile import CryticCompile, save_to_zip from crytic_compile.utils.zip import load_from_zip -from solc_select.solc_select import install_artifacts as install_solc_versions -from solc_select.solc_select import installed_versions as get_installed_solc_versions - from slither import Slither from slither.detectors.abstract_detector import AbstractDetector from slither.detectors import all_detectors @@ -1661,6 +1658,7 @@ GENERIC_PATH = "/GENERIC_PATH" TEST_DATA_DIR = Path(__file__).resolve().parent / "test_data" +# pylint: disable=too-many-arguments @pytest.mark.parametrize("test_item", ALL_TESTS, ids=id_test) def test_detector(test_item: Test): test_dir_path = Path( diff --git a/tests/unit/core/test_contract_declaration.py b/tests/unit/core/test_contract_declaration.py index 5ca20428d..db9a141f5 100644 --- a/tests/unit/core/test_contract_declaration.py +++ b/tests/unit/core/test_contract_declaration.py @@ -1,17 +1,9 @@ -import inspect from pathlib import Path -import pytest -from crytic_compile import CryticCompile -from crytic_compile.platform.solc_standard_json import SolcStandardJson from solc_select import solc_select from slither import Slither from slither.core.variables.state_variable import StateVariable -from slither.detectors import all_detectors -from slither.detectors.abstract_detector import AbstractDetector -from slither.slithir.operations import InternalCall, LibraryCall -from slither.utils.arithmetic import unchecked_arithemtic_usage TEST_DATA_DIR = Path(__file__).resolve().parent / "test_data" CONTRACT_DECL_TEST_ROOT = Path(TEST_DATA_DIR, "contract_declaration") diff --git a/tests/unit/slithir/test_operation_reads.py b/tests/unit/slithir/test_operation_reads.py index d87dc79c3..3b5565c9f 100644 --- a/tests/unit/slithir/test_operation_reads.py +++ b/tests/unit/slithir/test_operation_reads.py @@ -1,8 +1,8 @@ from pathlib import Path from collections import namedtuple +from solc_select import solc_select from slither import Slither from slither.slithir.operations import Operation, NewContract -from solc_select import solc_select TEST_DATA_DIR = Path(__file__).resolve().parent / "test_data" diff --git a/tests/unit/slithir/test_ssa_generation.py b/tests/unit/slithir/test_ssa_generation.py index 81b0493d3..852e94883 100644 --- a/tests/unit/slithir/test_ssa_generation.py +++ b/tests/unit/slithir/test_ssa_generation.py @@ -251,7 +251,6 @@ def select_solc_version(version: Optional[str]) -> None: yield version - @contextmanager def slither_from_source(source_code: str, solc_version: Optional[str] = None): """Yields a Slither instance using source_code string and solc_version