Merge pull request 'pkgs/cli: Add regression test for clan show' (#4272) from kenji/ke-test-add-show into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4272
This commit is contained in:
16
pkgs/clan-cli/clan_cli/clan/show_test.py
Normal file
16
pkgs/clan-cli/clan_cli/clan/show_test.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
from clan_cli.tests.fixtures_flakes import FlakeForTest
|
||||||
|
from clan_cli.tests.helpers import cli
|
||||||
|
from clan_cli.tests.stdout import CaptureOutput
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.with_core
|
||||||
|
def test_clan_show(
|
||||||
|
test_flake_with_core: FlakeForTest, capture_output: CaptureOutput
|
||||||
|
) -> None:
|
||||||
|
with capture_output as output:
|
||||||
|
cli.run(["show", "--flake", str(test_flake_with_core.path)])
|
||||||
|
assert "Name:" in output.out
|
||||||
|
assert "Name: test_flake_with_core" in output.out
|
||||||
|
assert "Description:" in output.out
|
||||||
Reference in New Issue
Block a user