summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2013-09-04 15:37:24 +0200
committerholger krekel <holger@merlinux.eu>2013-09-04 15:37:24 +0200
commit62f51be1a1b15ea71ac4359242b612e665289ca0 (patch)
tree742deec0b6818a033af72cd811bf38b21199124a /tests
parent44a372f509bcc2ce0a251ee2185094bebdf93360 (diff)
downloadtox-62f51be1a1b15ea71ac4359242b612e665289ca0.tar.gz
fix issue102: change to {toxinidir} when installing packages and dependencies.
this allows to use relative path like in "-rrequirements.txt".
Diffstat (limited to 'tests')
-rw-r--r--tests/test_venv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py
index ab34db7..67bdb92 100644
--- a/tests/test_venv.py
+++ b/tests/test_venv.py
@@ -133,7 +133,7 @@ def test_install_deps_wildcard(newmocksession):
venv.install_deps()
assert len(l) == 2 + py25calls
args = l[-1].args
- assert l[-1].cwd == venv.envconfig.envlogdir
+ assert l[-1].cwd == venv.envconfig.config.toxinidir
assert "pip" in str(args[0])
assert args[1] == "install"
#arg = "--download-cache=" + str(venv.envconfig.downloadcache)
@@ -163,7 +163,7 @@ def test_install_downloadcache(newmocksession, monkeypatch, tmpdir, envdc):
venv.install_deps()
assert len(l) == 2 + py25calls
args = l[-1].args
- assert l[-1].cwd == venv.envconfig.envlogdir
+ assert l[-1].cwd == venv.envconfig.config.toxinidir
assert "pip" in str(args[0])
assert args[1] == "install"
assert "dep1" in args