Merging upstream version 0.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f45bc3d463
commit
8d2f70e3c7
77 changed files with 23610 additions and 2331 deletions
24
tests/unit/cli/test_cli.py
Normal file
24
tests/unit/cli/test_cli.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import pytest
|
||||
from click.testing import CliRunner
|
||||
from eos_downloader.cli.cli import ardl
|
||||
|
||||
@pytest.fixture
|
||||
def runner():
|
||||
return CliRunner()
|
||||
|
||||
def test_ardl_help(runner):
|
||||
result = runner.invoke(ardl, ['--help'])
|
||||
assert result.exit_code == 0
|
||||
assert "Arista Network Download CLI" in result.output
|
||||
|
||||
def test_ardl_version(runner):
|
||||
result = runner.invoke(ardl, ['--version'])
|
||||
assert result.exit_code == 0
|
||||
assert "version" in result.output
|
||||
|
||||
def test_cli_execution(runner):
|
||||
result = runner.invoke(ardl, [])
|
||||
assert result.exit_code == 0
|
||||
assert "Usage: ardl [OPTIONS] COMMAND [ARGS]..." in result.output
|
||||
assert "Arista Network Download CLI" in result.output
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue