def test_remove_pycache_on(self): ext = venv.Extension() config = copy.deepcopy(venv.cfg) config.python_venv.remove_pycache = True spec = Spec() ext.generate(config, spec) assert self.cmd in str(spec)
def test_use_pip_install_on(): ext = venv.Extension() config = copy.deepcopy(venv.cfg) config.python_venv.use_pip_install = True spec = Spec() ext.generate(config, spec) assert '%{venv_pip} .' in str(spec)
def test_remove_pycache_off(self): ext = venv.Extension() config = copy.deepcopy(venv.cfg) spec = Spec() ext.generate(config, spec) assert self.cmd not in str(spec)
def test_use_pip_install_off(): ext = venv.Extension() config = copy.deepcopy(venv.cfg) spec = Spec() ext.generate(config, spec) assert '%{venv_python} setup.py install' in str(spec)