Merge pull request 'pkgs/clan: Add test for clan flash list' (#4281) from kenji/ke-test-flash into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4281
This commit is contained in:
23
pkgs/clan-cli/clan_cli/flash/list_test.py
Normal file
23
pkgs/clan-cli/clan_cli/flash/list_test.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import pytest
|
||||
|
||||
from clan_cli.tests.helpers import cli
|
||||
from clan_cli.tests.stdout import CaptureOutput
|
||||
|
||||
|
||||
@pytest.mark.impure
|
||||
def test_flash_list_languages(capture_output: CaptureOutput) -> None:
|
||||
with capture_output as output:
|
||||
cli.run(["flash", "list", "languages"])
|
||||
assert "en_US.UTF-8" in output.out
|
||||
assert "C" in output.out
|
||||
languages = output.out.strip().split("\n")
|
||||
assert len(languages) > 1
|
||||
|
||||
|
||||
@pytest.mark.impure
|
||||
def test_flash_list_keymaps(capture_output: CaptureOutput) -> None:
|
||||
with capture_output as output:
|
||||
cli.run(["flash", "list", "keymaps"])
|
||||
assert "us" in output.out
|
||||
keymaps = output.out.strip().split("\n")
|
||||
assert len(keymaps) > 1
|
||||
Reference in New Issue
Block a user