Skip to content

Commit

Permalink
Fix test in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Jun 12, 2024
1 parent 43301c7 commit 5c0eccf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/tools/mutator/test_mutator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5c0eccf

Please sign in to comment.