add bounds/crop/rotation flags to sceneitem transform

upd readme
upd changelog

upd tests

minor bump
This commit is contained in:
2025-04-27 13:50:40 +01:00
parent 8465944f30
commit 87eb7752bd
7 changed files with 112 additions and 7 deletions

View File

@@ -7,9 +7,27 @@ from obsws_cli.app import app
runner = CliRunner()
def test_item_list():
"""Test the item list command."""
def test_sceneitem_list():
"""Test the sceneitem list command."""
result = runner.invoke(app, ['sceneitem', 'list', 'pytest'])
assert result.exit_code == 0
assert 'pytest_input' in result.stdout
assert 'pytest_input_2' in result.stdout
def test_sceneitem_transform():
"""Test the sceneitem transform command."""
result = runner.invoke(
app,
[
'sceneitem',
'transform',
'--rotation=60',
'pytest',
'pytest_input_2',
],
)
assert result.exit_code == 0
assert (
"Item 'pytest_input_2' in scene 'pytest' has been transformed" in result.stdout
)