Skip to content

Commit

Permalink
Fixed a bug in the tests (now they all should pass)
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Jul 20, 2021
1 parent 1174eb5 commit 7c4dd2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ deps: ## Install dependencies
python -m pip install --upgrade pip
python -m pip install black flake8 flit pylint tox tox-gh-actions semantic_version polib
python -m pip install click pyserial requests
python -m pip install pytest

cenv: ## Create the virtual-environment and update dependencies
python3 -m venv venv
Expand Down Expand Up @@ -31,4 +32,4 @@ install: ## Install the tool locally
flit install

tests: ## Make tests
py.test apio test
pytest apio test
4 changes: 2 additions & 2 deletions test/env_commands/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ def test_system_lsftdi(clirunner, configenv):
configenv()
result = clirunner.invoke(cmd_system, ['--lsftdi'])
assert result.exit_code == 1
assert 'apio install system' in result.output
assert 'apio install oss-cad-suite' in result.output


def test_system_lsusb(clirunner, configenv):
with clirunner.isolated_filesystem():
configenv()
result = clirunner.invoke(cmd_system, ['--lsusb'])
assert result.exit_code == 1
assert 'apio install system' in result.output
assert 'apio install oss-cad-suite' in result.output


def test_system_lsserial(clirunner, configenv):
Expand Down

0 comments on commit 7c4dd2a

Please sign in to comment.