Skip to content

Commit

Permalink
Add get/run_commands tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Jul 24, 2023
1 parent 144022a commit 366fb4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/plugins/cliconf/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ def test_get_config(cliconf):
def test_edit_config(cliconf):
with pytest.raises(AnsibleConnectionFailure):
cliconf.edit_config()


def test_get_no_command(cliconf):
with pytest.raises(ValueError, match="must provide value of command to execute"):
cliconf.get()


def test_run_commands_no_commands(cliconf):
with pytest.raises(ValueError, match="'commands' value is required"):
cliconf.run_commands()

0 comments on commit 366fb4e

Please sign in to comment.