Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 15, 2023
1 parent 934083f commit 155576a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/cli/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ def test_compile_specified_contracts(ape_cli, runner, project, contract_path, cl
assert result.exit_code == 0, result.output
assert "Compiling 'Interface.json'" in result.output

# Already compiled.
result = runner.invoke(ape_cli, ["compile", contract_path], catch_exceptions=False)
assert result.exit_code == 0, result.output
assert "Compiling 'Interface.json'" not in result.output

# Force recompile.
result = runner.invoke(ape_cli, ["compile", contract_path, "--force"], catch_exceptions=False)
assert result.exit_code == 0, result.output
assert "Compiling 'Interface.json'" in result.output


@skip_projects_except("multiple-interfaces")
def test_compile_unknown_extension_does_not_compile(ape_cli, runner, project, clean_cache):
Expand Down

0 comments on commit 155576a

Please sign in to comment.