From fdbb3ebe22fcf3900aa5ca54302c63db88755923 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 26 May 2025 00:21:14 +0100 Subject: [PATCH] add hotkey tests --- tests/test_hotkey.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_hotkey.py diff --git a/tests/test_hotkey.py b/tests/test_hotkey.py new file mode 100644 index 0000000..54a1d67 --- /dev/null +++ b/tests/test_hotkey.py @@ -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