-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
""" | ||
Test for the "apio lint" command | ||
""" | ||
from apio.commands.lint import cli as cmd_lint | ||
|
||
|
||
def test_lint(clirunner, configenv): | ||
"""Test: apio lint | ||
when no apio.ini file is given | ||
No additional parameters are given | ||
""" | ||
|
||
with clirunner.isolated_filesystem(): | ||
|
||
# -- Config the environment (conftest.configenv()) | ||
configenv() | ||
result = clirunner.invoke(cmd_lint, ['--board', 'icezum']) | ||
|
||
# -- Execute "apio lint" | ||
result = clirunner.invoke(cmd_lint, ['--board', 'alhambra-ii']) | ||
assert result.exit_code != 0 | ||
if result.exit_code == 1: | ||
assert 'apio install verilator' in result.output |