mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add version option
This commit is contained in:
10
tests/cli/test_cli.py
Normal file
10
tests/cli/test_cli.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from click.testing import CliRunner
|
||||
|
||||
import textual
|
||||
from textual.cli.cli import run
|
||||
|
||||
|
||||
def test_cli_version():
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(run, ["--version"])
|
||||
assert textual.__version__ in result.output, "You need to update __version__"
|
||||
Reference in New Issue
Block a user