obsws-cli/tests/test_version.py
2025-05-26 00:18:03 +01:00

16 lines
403 B
Python

"""Unit tests for the root command in the OBS WebSocket CLI."""
from typer.testing import CliRunner
from obsws_cli.app import app
runner = CliRunner(mix_stderr=False)
def test_version():
"""Test the version command."""
result = runner.invoke(app, ['version'])
assert result.exit_code == 0
assert 'OBS Client version' in result.stdout
assert 'WebSocket version' in result.stdout