mirror of
https://github.com/simonw/dclient.git
synced 2026-09-15 21:14:11 +02:00
Initial library structure
This commit is contained in:
parent
ac7aaab22d
commit
56c4672f37
9 changed files with 311 additions and 85 deletions
10
tests/test_dclient.py
Normal file
10
tests/test_dclient.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from click.testing import CliRunner
|
||||
from dclient.cli import cli
|
||||
|
||||
|
||||
def test_version():
|
||||
runner = CliRunner()
|
||||
with runner.isolated_filesystem():
|
||||
result = runner.invoke(cli, ["--version"])
|
||||
assert result.exit_code == 0
|
||||
assert result.output.startswith("cli, version ")
|
||||
Loading…
Add table
Add a link
Reference in a new issue