summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecka Gulliksson <rebecka.gulliksson@umu.se>2015-08-24 12:10:11 +0200
committerRebecka Gulliksson <rebecka.gulliksson@umu.se>2015-08-24 12:10:11 +0200
commitc401fd36cd84f49c5bccc30cdc49de685cc517d8 (patch)
tree64583438cd6167dce50f90f6a93ca191e2bb0d22
parente2b7f6995fe5aeb298f7a985f9f565557cff302a (diff)
downloadtox-c401fd36cd84f49c5bccc30cdc49de685cc517d8.tar.gz
Added test for non-voting testenv with failing command.
-rw-r--r--tests/test_venv.py13
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