mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -514,29 +514,6 @@ requests = {version = "*"}
|
||||
assert 'urllib3' in p.lockfile['default']
|
||||
assert 'pysocks' in p.lockfile['default']
|
||||
|
||||
@pytest.mark.code
|
||||
@pytest.mark.virtualenv
|
||||
@pytest.mark.parametrize('shell, extension', [
|
||||
('/bin/bash', ''),
|
||||
('/bin/fish', '.fish'),
|
||||
('/bin/csh', '.csh'),
|
||||
('/bin/unknown', '')]
|
||||
)
|
||||
@pytest.mark.skipif(os.name == 'nt', reason="Not supported to windows")
|
||||
def test_activate_virtualenv(self, shell, extension):
|
||||
|
||||
orig_shell = os.environ['SHELL']
|
||||
os.environ['SHELL'] = shell
|
||||
|
||||
# Get standard activation command for bash
|
||||
command = activate_virtualenv()
|
||||
|
||||
# Return environment to initial shell config.
|
||||
os.environ['SHELL'] = orig_shell
|
||||
|
||||
venv = Project().virtualenv_location
|
||||
assert command == 'source {0}/bin/activate{1}'.format(venv, extension)
|
||||
|
||||
@pytest.mark.code
|
||||
@pytest.mark.virtualenv
|
||||
def test_activate_virtualenv_no_source(self):
|
||||
|
||||
Reference in New Issue
Block a user