diff options
author | holger krekel <holger@merlinux.eu> | 2016-06-20 16:40:36 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2016-06-20 16:40:36 +0200 |
commit | 6c44042ac2357850365c83e7f31be4d74dd2199f (patch) | |
tree | 3716b0612981bec73b9ba8488726f9efef6d8133 /tests | |
parent | 30ba6a86ca085bb68280244116bb5b68743d376c (diff) | |
download | tox-6c44042ac2357850365c83e7f31be4d74dd2199f.tar.gz |
fix issue66 by introducing using default "python -m pip"
and introducing list_dependencies_command. (Ted, Holger)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_venv.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py index 4ab3b06..30bdf3c 100644 --- a/tests/test_venv.py +++ b/tests/test_venv.py @@ -137,8 +137,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[0]) - assert args[1] == "install" + assert "pip" in str(args[2]) + assert args[3] == "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")] @@ -167,8 +167,8 @@ def test_install_downloadcache(newmocksession, monkeypatch, tmpdir, envdc): assert len(l) == 2 args = l[-1].args assert l[-1].cwd == venv.envconfig.config.toxinidir - assert "pip" in str(args[0]) - assert args[1] == "install" + assert "pip" in str(args) + assert args[3] == "install" assert "dep1" in args assert "dep2" in args deps = list(filter(None, [x[1] for x in venv._getliveconfig().deps])) @@ -365,7 +365,7 @@ def test_install_python3(tmpdir, newmocksession): venv._install(["hello"], action=action) assert len(l) == 1 args = l[0].args - assert 'pip' in str(args[0]) + assert "pip" in [str(x) for x in args] for x in args: assert "--download-cache" not in args, args @@ -597,7 +597,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[0] + assert 'pip' in l[0].args[2] assert 'install' in l[0].args env = l[0].env assert env is not None |