forked from clan/clan-core
apply treefmt
This commit is contained in:
parent
ddaf55fd08
commit
0b654c7434
@ -12,7 +12,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { flake-parts, ... }:
|
outputs = inputs @ { flake-parts, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, config, ... }: {
|
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import clan_cli
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import clan_cli
|
||||||
|
|
||||||
def test_no_args(capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
||||||
|
def test_no_args(
|
||||||
|
capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch
|
||||||
|
) -> None:
|
||||||
monkeypatch.setattr(sys, "argv", [""])
|
monkeypatch.setattr(sys, "argv", [""])
|
||||||
clan_cli.main()
|
clan_cli.main()
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
|
@ -11,7 +11,9 @@ def test_no_args(capsys: pytest.CaptureFixture) -> None:
|
|||||||
assert captured.out.startswith("usage:")
|
assert captured.out.startswith("usage:")
|
||||||
|
|
||||||
|
|
||||||
def test_version(capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None:
|
def test_version(
|
||||||
|
capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch
|
||||||
|
) -> None:
|
||||||
monkeypatch.setattr(sys, "argv", ["", "--version"])
|
monkeypatch.setattr(sys, "argv", ["", "--version"])
|
||||||
my_tool.my_cli()
|
my_tool.my_cli()
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
|
Loading…
Reference in New Issue
Block a user