mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 20:20:32 +01:00
add hotkey tests
This commit is contained in:
parent
06d83ce05a
commit
fdbb3ebe22
14
tests/test_hotkey.py
Normal file
14
tests/test_hotkey.py
Normal file
@ -0,0 +1,14 @@
|
||||
"""Unit tests for the hotkey command in the OBS WebSocket CLI."""
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
from obsws_cli.app import app
|
||||
|
||||
runner = CliRunner(mix_stderr=False)
|
||||
|
||||
|
||||
def test_hotkey_list():
|
||||
"""Test the hotkey list command."""
|
||||
result = runner.invoke(app, ['hotkey', 'list'])
|
||||
assert result.exit_code == 0
|
||||
assert 'Hotkeys' in result.stdout
|
Loading…
x
Reference in New Issue
Block a user