Skip to content

Commit

Permalink
test_build.py: refactor test_build_complete2
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Feb 21, 2024
1 parent a46cd83 commit 53d3e62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/code_commands/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,21 +222,24 @@ def test_build_complete2(clirunner, configenv):
# apio build --fpga iCE40-FAKE
result = clirunner.invoke(cmd_build, ["--fpga", "iCE40-FAKE"])
assert result.exit_code != 0
# assert 'Error: unknown FPGA: iCE40-FAKE' in result.output
assert "Error: unknown FPGA: iCE40-FAKE" in result.output

# apio build --fpga iCE40-FAKE --size 8k
result = clirunner.invoke(
cmd_build, ["--fpga", "iCE40-FAKE", "--size", "8k"]
)
assert result.exit_code != 0
# assert 'Error: unknown FPGA: iCE40-FAKE' in result.output
assert "Error: unknown FPGA: iCE40-FAKE" in result.output

# apio build --board icezum --fpga iCE40-FAKE
result = clirunner.invoke(
cmd_build, ["--board", "icezum", "--fpga", "iCE40-FAKE"]
)
assert result.exit_code != 0
# assert 'Error: unknown FPGA: iCE40-FAKE' in result.output
assert (
"Error: contradictory arguments: ('iCE40-HX1K-TQ144', 'iCE40-FAKE')"
in result.output
)


def test_build_init(clirunner, configenv):
Expand Down

0 comments on commit 53d3e62

Please sign in to comment.