Merge pull request 'cli' (#17) from cli into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/17
This commit is contained in:
@@ -65,8 +65,7 @@ let
|
|||||||
cp -r ${src} ./src
|
cp -r ${src} ./src
|
||||||
chmod +w -R ./src
|
chmod +w -R ./src
|
||||||
cd src
|
cd src
|
||||||
find .
|
${checkPython}/bin/python -m pytest ./tests
|
||||||
${checkPython}/bin/pytest
|
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import clan_cli
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def test_no_args(capsys):
|
def test_no_args(capsys: pytest.CaptureFixture) -> None:
|
||||||
clan_cli.main()
|
clan_cli.main()
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert captured.out.startswith("usage:")
|
assert captured.out.startswith("usage:")
|
||||||
|
|||||||
Reference in New Issue
Block a user