cli: add test for --help

This commit is contained in:
Jörg Thalheim
2023-08-03 15:33:08 +02:00
parent cfd1089ff3
commit b540f318c7
2 changed files with 4 additions and 1 deletions

View File

@@ -77,5 +77,8 @@ python3.pkgs.buildPythonPackage {
installShellCompletion --fish --name clan.fish \
<(${argcomplete}/bin/register-python-argcomplete --shell fish clan)
'';
checkPhase = ''
PYTHONPATH= $out/bin/clan --help
'';
meta.mainProgram = "clan";
}

View File

@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "clan"
description = "cLAN CLI tool"
dynamic = [ "version" ]
scripts = { clan = "clan_cli.cli:main" }
scripts = { clan = "clan_cli:main" }
[tool.setuptools.packages]
find = {}