diff --git a/tests/test_dcos_cli.py b/tests/test_dcos_cli.py index ec0cfd4..cdba77f 100644 --- a/tests/test_dcos_cli.py +++ b/tests/test_dcos_cli.py @@ -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('') @@ -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( @@ -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): @@ -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(