From 4f0a3816baac82c8d482b62273153b868070afe6 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 8 May 2025 00:39:06 +0100 Subject: [PATCH] upd group toggle test --- tests/test_group.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_group.py b/tests/test_group.py index 4f640b6..16cab3e 100644 --- a/tests/test_group.py +++ b/tests/test_group.py @@ -23,13 +23,16 @@ def test_group_show(): def test_group_toggle(): """Test the group toggle command.""" - result = runner.invoke(app, ['group', 'hide', 'Scene', 'test_group']) + result = runner.invoke(app, ['group', 'status', 'Scene', 'test_group']) assert result.exit_code == 0 - assert "Group 'test_group' is now hidden." 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 - assert "Group 'test_group' is now visible." in result.stdout + if enabled: + assert "Group 'test_group' is now hidden." in result.stdout + else: + assert "Group 'test_group' is now visible." in result.stdout def test_group_status():