1
0
Fork 0

Merging upstream version 0.12.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-10 06:39:52 +01:00
parent f45bc3d463
commit 8d2f70e3c7
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
77 changed files with 23610 additions and 2331 deletions

View 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