mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 06:53:38 +00:00
add output to scene switch command
add unit test patch bump
This commit is contained in:
@@ -20,3 +20,19 @@ def test_scene_current():
|
||||
result = runner.invoke(app, ['scene', 'current'])
|
||||
assert result.exit_code == 0
|
||||
assert 'pytest' in result.stdout
|
||||
|
||||
|
||||
def test_scene_switch():
|
||||
"""Test the scene switch command."""
|
||||
result = runner.invoke(app, ['studiomode', 'status'])
|
||||
assert result.exit_code == 0
|
||||
enabled = 'Studio mode is enabled.' in result.stdout
|
||||
|
||||
if enabled:
|
||||
result = runner.invoke(app, ['scene', 'switch', 'pytest', '--preview'])
|
||||
assert result.exit_code == 0
|
||||
assert 'Switched to preview scene: pytest' in result.stdout
|
||||
else:
|
||||
result = runner.invoke(app, ['scene', 'switch', 'pytest'])
|
||||
assert result.exit_code == 0
|
||||
assert 'Switched to program scene: pytest' in result.stdout
|
||||
|
||||
Reference in New Issue
Block a user