Skip to content

Commit

Permalink
test: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed May 14, 2024
1 parent 7ab2a18 commit 3d4b825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
)
def test_cli_flatten(project, contract_name, expected, cli_runner):
path = project.contracts_folder / contract_name
with create_tempdir(name="flattenme") as tmpdir:
result = cli_runner.invoke(cli, ("flatten", str(path), tmpdir.name), catch_exceptions=False)
with create_tempdir() as tmpdir:
file = tmpdir / "flatten.vy"
result = cli_runner.invoke(cli, ("flatten", str(path), str(file)), catch_exceptions=False)
assert result.exit_code == 0, result.stderr_bytes
output = tmpdir.read_text()
output = file.read_text()
for expect in expected:
assert expect in output
5 changes: 4 additions & 1 deletion tests/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def run_test(manifest):

for compiler in (vyper_028, codesize_latest, true_latest):
assert compiler.name == "vyper"
assert compiler.settings["evmVersion"] == "istanbul"

assert vyper_028.settings["evmVersion"] == "berlin"
assert codesize_latest.settings["evmVersion"] == "shanghai"
assert true_latest.settings["evmVersion"] == "shanghai"

# There is only one contract with codesize pragma.
assert codesize_latest.contractTypes == ["optimize_codesize"]
Expand Down

0 comments on commit 3d4b825

Please sign in to comment.