mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 06:53:38 +00:00
add monitor validate function
upd tests to match console colour changes
This commit is contained in:
@@ -36,3 +36,10 @@ def test_scene_switch():
|
||||
result = runner.invoke(app, ['scene', 'switch', 'pytest_scene'])
|
||||
assert result.exit_code == 0
|
||||
assert 'Switched to program scene: pytest_scene' in result.stdout
|
||||
|
||||
|
||||
def test_scene_switch_invalid():
|
||||
"""Test the scene switch command with an invalid scene."""
|
||||
result = runner.invoke(app, ['scene', 'switch', 'non_existent_scene'])
|
||||
assert result.exit_code != 0
|
||||
assert 'Scene non_existent_scene not found' in result.stderr
|
||||
|
||||
Reference in New Issue
Block a user