Fix test in CI.

pull/2482/head
Alexis 5 months ago
parent 43301c750d
commit 5c0eccfbc5
No known key found for this signature in database
  1. 7
      tests/tools/mutator/test_mutator.py

@ -61,16 +61,17 @@ def test_get_mutators():
),
)
@pytest.mark.skip(reason="Slow test")
def test_mutator(mock_args): # pylint: disable=unused-argument
def test_mutator(mock_args, solc_binary_path): # pylint: disable=unused-argument
with change_directory(TEST_DATA_DIR / "test_source_unit"):
main()
def test_backup_source_file():
def test_backup_source_file(solc_binary_path):
solc_path = solc_binary_path("0.8.15")
file_path = (TEST_DATA_DIR / "test_source_unit" / "src" / "Counter.sol").as_posix()
sl = Slither(file_path)
sl = Slither(file_path, solc=solc_path)
with tempfile.TemporaryDirectory() as directory:
files_dict = backup_source_file(sl.source_code, Path(directory))

Loading…
Cancel
Save