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:
@@ -18,29 +18,29 @@ def test_group_show():
|
||||
"""Test the group show command."""
|
||||
result = runner.invoke(app, ['group', 'show', 'Scene', 'test_group'])
|
||||
assert result.exit_code == 0
|
||||
assert "Group 'test_group' is now visible." in result.stdout
|
||||
assert 'Group test_group is now visible.' in result.stdout
|
||||
|
||||
|
||||
def test_group_toggle():
|
||||
"""Test the group toggle command."""
|
||||
result = runner.invoke(app, ['group', 'status', 'Scene', 'test_group'])
|
||||
assert result.exit_code == 0
|
||||
enabled = "Group 'test_group' is now visible." in result.stdout
|
||||
enabled = 'Group test_group is now visible.' in result.stdout
|
||||
|
||||
result = runner.invoke(app, ['group', 'toggle', 'Scene', 'test_group'])
|
||||
assert result.exit_code == 0
|
||||
if enabled:
|
||||
assert "Group 'test_group' is now hidden." in result.stdout
|
||||
assert 'Group test_group is now hidden.' in result.stdout
|
||||
else:
|
||||
assert "Group 'test_group' is now visible." in result.stdout
|
||||
assert 'Group test_group is now visible.' in result.stdout
|
||||
|
||||
|
||||
def test_group_status():
|
||||
"""Test the group status command."""
|
||||
result = runner.invoke(app, ['group', 'show', 'Scene', 'test_group'])
|
||||
assert result.exit_code == 0
|
||||
assert "Group 'test_group' is now visible." in result.stdout
|
||||
assert 'Group test_group is now visible.' in result.stdout
|
||||
|
||||
result = runner.invoke(app, ['group', 'status', 'Scene', 'test_group'])
|
||||
assert result.exit_code == 0
|
||||
assert "Group 'test_group' is now visible." in result.stdout
|
||||
assert 'Group test_group is now visible.' in result.stdout
|
||||
|
||||
Reference in New Issue
Block a user