diff options
| author | Rebecka Gulliksson <rebecka.gulliksson@umu.se> | 2015-08-24 12:10:11 +0200 |
|---|---|---|
| committer | Rebecka Gulliksson <rebecka.gulliksson@umu.se> | 2015-08-24 12:10:11 +0200 |
| commit | c401fd36cd84f49c5bccc30cdc49de685cc517d8 (patch) | |
| tree | 64583438cd6167dce50f90f6a93ca191e2bb0d22 | |
| parent | e2b7f6995fe5aeb298f7a985f9f565557cff302a (diff) | |
| download | tox-c401fd36cd84f49c5bccc30cdc49de685cc517d8.tar.gz | |
Added test for non-voting testenv with failing command.
| -rw-r--r-- | tests/test_venv.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py index 7c6b05a..730175a 100644 --- a/tests/test_venv.py +++ b/tests/test_venv.py @@ -611,3 +611,16 @@ def test_command_relative_issue26(newmocksession, tmpdir, monkeypatch): x4 = venv.getcommandpath("x", cwd=tmpdir) assert x4.endswith(os.sep + 'x') mocksession.report.expect("warning", "*test command found but not*") + + +def test_non_voting_failing_cmd(newmocksession): + mocksession = newmocksession([], """ + [testenv] + commands=testenv_fail + voting=False + """) + + venv = mocksession.getenv('python') + venv.test() + assert venv.status == "non-voting fail" + mocksession.report.expect("warning", "*command failed, but testenv*")
\ No newline at end of file |
