mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 06:53:38 +00:00
add version_callback
rename version command to obs-version upd version unit test
This commit is contained in:
@@ -8,8 +8,15 @@ runner = CliRunner(mix_stderr=False)
|
||||
|
||||
|
||||
def test_version():
|
||||
"""Test the version command."""
|
||||
result = runner.invoke(app, ['version'])
|
||||
"""Test the version option."""
|
||||
result = runner.invoke(app, ['--version'])
|
||||
assert result.exit_code == 0
|
||||
assert 'obsws_cli version:' in result.stdout
|
||||
|
||||
|
||||
def test_obs_version():
|
||||
"""Test the obs-version command."""
|
||||
result = runner.invoke(app, ['obs-version'])
|
||||
assert result.exit_code == 0
|
||||
assert 'OBS Client version' in result.stdout
|
||||
assert 'WebSocket version' in result.stdout
|
||||
|
||||
Reference in New Issue
Block a user