From edefa93681733a5a86b1ea5b381c2d6f869f9109 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Wed, 18 Dec 2024 16:13:56 +0000 Subject: [PATCH] test(switch): add case for missing args --- tests/commands/test_switch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/commands/test_switch.py b/tests/commands/test_switch.py index 7abb2fa..fbcc839 100644 --- a/tests/commands/test_switch.py +++ b/tests/commands/test_switch.py @@ -56,3 +56,8 @@ def test_switch_both(mock_commands_config): mock_commands_config.assert_called_once_with() assert Config().active_env_name == "e2" assert Config().active_participant_id == "p2" + + +def test_switch_none(): + with pytest.raises(ValueError): + switch()