pull/1799/head
alpharush 2 years ago
parent 38ac822bc5
commit 16f8f33cab
  1. 4
      tests/e2e/detectors/test_detectors.py
  2. 8
      tests/unit/core/test_contract_declaration.py
  3. 2
      tests/unit/slithir/test_operation_reads.py
  4. 1
      tests/unit/slithir/test_ssa_generation.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(

@ -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")

@ -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"

@ -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

Loading…
Cancel
Save