Commits

Carl Meyer committed 4cdc267

Add install_deps_command testenv option.

Comments (0)

Files changed (2)

tests/test_config.py

         assert envconfig.changedir.basename == "abc"
         assert envconfig.changedir == config.setupdir.join("abc")
 
+    def test_install_deps_command(self, newconfig):
+        config = newconfig("""
+            [testenv]
+            install_deps_command=pip install --pre {deps}
+        """)
+        envconfig = config.envconfigs['python']
+        assert envconfig.install_deps_command == "pip install --pre {deps}"
+
     def test_simple(tmpdir, newconfig):
         config = newconfig("""
             [testenv:py24]
             downloadcache = reader.getdefault(section, "downloadcache")
         if downloadcache:
             vc.downloadcache = py.path.local(downloadcache)
+        vc.install_deps_command = reader.getdefault(
+            section, "install_deps_command", "pip @@@", replace=False)
         return vc
 
     def _getenvlist(self, reader, toxsection):