Skip to content

Commit

Permalink
Revert "Update test_cli.py"
Browse files Browse the repository at this point in the history
This reverts commit 116b191.
  • Loading branch information
mattsaxonwp committed Jun 9, 2019
1 parent 116b191 commit e25c9cd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tests/test_cli.py
Expand Up @@ -23,7 +23,7 @@ def test_cli_no_args(self):
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.cli)
assert 'No host name or device_id given, see usage below' in result.output
assert 'No host name given, see usage below' in result.output
assert 'Commands:' in result.output

def test_cli_invalid_arg(self):
Expand Down Expand Up @@ -62,16 +62,7 @@ def test_cli_state(self):
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.cli, ['state'])
assert 'No host name or device_id given, see usage below' in result.output

# remove until I decide how to deal with waiting for connection
# def test_cli_unconnectable_host_state(self):
# """Test the CLI."""
# runner = CliRunner()
# result = runner.invoke(cli.cli, ['--host', '127.0.0.100', 'state'])
# assert 'Initialising SonoffSwitch with host 127.0.0.100' in \
# result.output
# assert 'Unable to connect' in result.output
assert 'No host name given, see usage below' in result.output

def test_cli_discover(self):
"""Test the CLI."""
Expand Down

0 comments on commit e25c9cd

Please sign in to comment.