Skip to content

Commit

Permalink
install properties in pytest workflow, fetch remappings in harness tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuturu-tech committed Mar 26, 2024
1 parent e2a5cc5 commit 8b64180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Foundry dependencies
uses: forge install crytic/properties

- name: Set remappings
uses: forge remappings > remappings.txt

- name: Run tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion tests/test_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from slither import Slither
from slither.core.declarations.contract import Contract
from slither.core.declarations.function_contract import FunctionContract
from fuzz_utils.utils.remappings import find_remappings

from fuzz_utils.template.HarnessGenerator import HarnessGenerator

Expand All @@ -29,7 +30,6 @@
],
"attacks": [],
}
remappings = {"properties": "properties/", "solmate": "solmate/"}


def test_modifier_filtering() -> None:
Expand Down Expand Up @@ -174,6 +174,7 @@ def run_harness(
expected_functions: set[str],
) -> None:
"""Sets up the HarnessGenerator"""
remappings = find_remappings(False)
config = copy.deepcopy(default_config)
slither = Slither(compilation_path)

Expand Down

0 comments on commit 8b64180

Please sign in to comment.