summaryrefslogtreecommitdiff
path: root/tests/unit/test_venv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_venv.py')
-rw-r--r--tests/unit/test_venv.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit/test_venv.py b/tests/unit/test_venv.py
index 2d019034..aa78a48b 100644
--- a/tests/unit/test_venv.py
+++ b/tests/unit/test_venv.py
@@ -980,6 +980,21 @@ def test_ignore_outcome_failing_cmd(newmocksession):
mocksession.report.expect("warning", "*command failed but result from testenv is ignored*")
+def test_ignore_outcome_missing_cmd(newmocksession):
+ mocksession = newmocksession(
+ [],
+ """\
+ [testenv]
+ commands=-thiscommanddoesntexist
+ """,
+ )
+
+ venv = mocksession.getvenv("python")
+ venv.test()
+ assert venv.status == 0
+ mocksession.report.expect("warning", "*command not found but explicitly ignored*")
+
+
def test_tox_testenv_create(newmocksession):
log = []