summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHolger Krekel <holger@merlinux.eu>2016-06-25 13:08:56 +0200
committerHolger Krekel <holger@merlinux.eu>2016-06-25 13:08:56 +0200
commit14ae8802f0241dca1f4d775646b25cc56769034d (patch)
tree313f70a1c2d090f1051a0ddfd43e42b43fd8f901 /tests
parentd31c35a083b9d4bcef08dbd66b7cecf6b756d06b (diff)
parent7f1750a5990cf269bba6e0105e557f3bb91a1e37 (diff)
downloadtox-14ae8802f0241dca1f4d775646b25cc56769034d.tar.gz
Merged hpk42/tox into default
Diffstat (limited to 'tests')
-rw-r--r--tests/test_venv.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py
index 0af9977..86fbc46 100644
--- a/tests/test_venv.py
+++ b/tests/test_venv.py
@@ -138,8 +138,8 @@ def test_install_deps_wildcard(newmocksession):
assert len(l) == 2
args = l[-1].args
assert l[-1].cwd == venv.envconfig.config.toxinidir
- assert "pip" in str(args[2])
- assert args[3] == "install"
+ assert "pip" in str(args[0])
+ assert args[1] == "install"
# arg = "--download-cache=" + str(venv.envconfig.downloadcache)
# assert arg in args[2:]
args = [arg for arg in args if str(arg).endswith("dep1-1.1.zip")]
@@ -169,7 +169,7 @@ def test_install_downloadcache(newmocksession, monkeypatch, tmpdir, envdc):
args = l[-1].args
assert l[-1].cwd == venv.envconfig.config.toxinidir
assert "pip" in str(args)
- assert args[3] == "install"
+ assert args[1] == "install"
assert "dep1" in args
assert "dep2" in args
deps = list(filter(None, [x[1] for x in venv._getliveconfig().deps]))
@@ -366,7 +366,7 @@ def test_install_python3(tmpdir, newmocksession):
venv._install(["hello"], action=action)
assert len(l) == 1
args = l[0].args
- assert "pip" in [str(x) for x in args]
+ assert "pip" in args[0]
for x in args:
assert "--download-cache" not in args, args
@@ -598,7 +598,7 @@ def test_run_install_command(newmocksession):
venv.run_install_command(packages=["whatever"], action=action)
l = mocksession._pcalls
assert len(l) == 1
- assert 'pip' in l[0].args[2]
+ assert 'pip' in l[0].args[0]
assert 'install' in l[0].args
env = l[0].env
assert env is not None