Skip to content

Commit

Permalink
update pytest script
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Jul 22, 2023
1 parent 8c35fed commit 84afa38
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 38 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-long.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
include:
- testname: "examples/tokens/ERC20"
- testname: "examples/tokens/ERC721"
- testname: "examples/tokens/dei"

steps:
- uses: actions/checkout@v3
Expand Down
31 changes: 0 additions & 31 deletions tests/expected/dei.json

This file was deleted.

28 changes: 27 additions & 1 deletion tests/expected/erc20.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
{
"exitcode": 0,
"test_results": {
"test/DEIStablecoin.t.sol:DEIStablecoinTest": [
{
"name": "checkNoBackdoor(bytes4,address,address)",
"exitcode": 1,
"num_models": 1,
"num_paths": null,
"time": null,
"num_bounded_loops": null
},
{
"name": "checkTransfer(address,address,address,uint256)",
"exitcode": 0,
"num_models": 0,
"num_paths": null,
"time": null,
"num_bounded_loops": null
},
{
"name": "checkTransferFrom(address,address,address,address,uint256)",
"exitcode": 0,
"num_models": 0,
"num_paths": null,
"time": null,
"num_bounded_loops": null
}
],
"test/OpenZeppelinERC20.t.sol:OpenZeppelinERC20Test": [
{
"name": "checkNoBackdoor(bytes4)",
Expand Down Expand Up @@ -54,4 +80,4 @@
}
]
}
}
}
5 changes: 0 additions & 5 deletions tests/test_halmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,12 @@
["--root", "examples/tokens/ERC721"],
"tests/expected/erc721.json",
),
(
["--root", "examples/tokens/dei"],
"tests/expected/dei.json",
),
],
ids=(
"tests",
"examples/toy",
"long:examples/tokens/ERC20",
"long:examples/tokens/ERC721",
"long:examples/tokens/dei",
),
)
def test_main(cmd, expected_path, halmos_options):
Expand Down

0 comments on commit 84afa38

Please sign in to comment.