mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
11 lines
253 B
Python
11 lines
253 B
Python
from click.testing import CliRunner
|
|
from importlib_metadata import version
|
|
|
|
from textual.cli.cli import run
|
|
|
|
|
|
def test_cli_version():
|
|
runner = CliRunner()
|
|
result = runner.invoke(run, ["--version"])
|
|
assert version("textual") in result.output
|