Skip to content

Commit

Permalink
refactor test_lint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Feb 22, 2024
1 parent 44acbd4 commit de9e60e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/code_commands/test_lint.py
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

0 comments on commit de9e60e

Please sign in to comment.