Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabs committed Dec 19, 2018
1 parent ad806b4 commit b6b1cbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_dcos_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_exec_command(caplog):
assert any(rec.message.startswith('STDOUT:') for rec in caplog.records)
assert any(rec.message.startswith('STDERR:') for rec in caplog.records)


@deprecation.deprecated(details="Deprecated in favor of the `exec` function. DCOS-44823")
def test_exec_command_fail(caplog):
cli = dcos_cli.DcosCli('')
Expand All @@ -25,6 +26,7 @@ def test_exec_command_fail(caplog):
assert any(rec.message.startswith('CMD:') for rec in caplog.records)
assert any(rec.message.startswith('STDERR:') for rec in caplog.records)


def test_exec(caplog):
cli = dcos_cli.DcosCli('')
process = cli.exec(
Expand All @@ -37,6 +39,7 @@ def test_exec(caplog):
assert any(rec.message.startswith('STDOUT:') for rec in caplog.records)
assert any(rec.message.startswith('STDERR:') for rec in caplog.records)


def test_exec_fail(caplog):
cli = dcos_cli.DcosCli('')
with pytest.raises(subprocess.CalledProcessError):
Expand All @@ -45,6 +48,7 @@ def test_exec_fail(caplog):
assert any(rec.message.startswith('STDERR:') for rec in caplog.records)
assert any(rec.message.startswith('STDOUT:') for rec in caplog.records)


def test_exec_fail_without_check(caplog):
cli = dcos_cli.DcosCli('')
process = cli.exec(
Expand Down

0 comments on commit b6b1cbe

Please sign in to comment.