Skip to content

Commit

Permalink
test(switch): add case for missing args
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Dec 18, 2024
1 parent 9c97f75 commit edefa93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/commands/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit edefa93

Please # to comment.