@@ -98,17 +98,6 @@ test_virtualenvwrapper_virtualenv_clone_variable () {
9898 assertTrue " VIRTUALENVWRAPPER_CLONE did not clone fake file" " [ -f $WORKON_HOME /destination/fake_virtualenv_clone_was_here ]"
9999}
100100
101- test_source_relocatable () {
102- mkvirtualenv " source" > /dev/null 2>&1
103- (cd tests/testpackage && python setup.py install) > /dev/null 2>&1
104- assertTrue " virtualenv --relocatable \" $WORKON_HOME /source\" "
105- cpvirtualenv " source" " destination" > /dev/null 2>&1
106- testscript=" $( which testscript.py) "
107- assertTrue " Environment test script not the same as copy" " [ $WORKON_HOME /destination/bin/testscript.py -ef $testscript ]"
108- assertTrue virtualenvwrapper_verify_active_environment
109- assertSame " Wrong virtualenv name" " destination" $( basename " $VIRTUAL_ENV " )
110- }
111-
112101test_source_does_not_exist () {
113102 assertSame " Please provide a valid virtualenv to copy." " $( cpvirtualenv virtualenvthatdoesntexist foo) "
114103}
@@ -148,33 +137,4 @@ GLOBAL postcpvirtualenv"
148137 rm -f " $WORKON_HOME /postmkvirtualenv"
149138}
150139
151- test_no_site_packages () {
152- # See issue #102
153- mkvirtualenv " source" --no-site-packages > /dev/null 2>&1
154- cpvirtualenv " source" " destination" > /dev/null 2>&1
155- ngsp_file=" ` virtualenvwrapper_get_site_packages_dir` /../no-global-site-packages.txt"
156- assertTrue " $ngsp_file does not exist in copied env" " [ -f \" $ngsp_file \" ]"
157- }
158-
159- test_no_site_packages_default_args () {
160- # See issue #102
161- VIRTUALENVWRAPPER_VIRTUALENV_ARGS=" --no-site-packages"
162- # With the argument, verify that they are not copied.
163- mkvirtualenv " source" > /dev/null 2>&1
164- cpvirtualenv " source" " destination" > /dev/null 2>&1
165- ngsp_file=" ` virtualenvwrapper_get_site_packages_dir` /../no-global-site-packages.txt"
166- assertTrue " $ngsp_file does not exist" " [ -f \" $ngsp_file \" ]"
167- unset VIRTUALENVWRAPPER_VIRTUALENV_ARGS
168- }
169-
170- test_no_site_packages_default_behavior () {
171- # See issue #102
172- # virtualenv 1.7 changed to make --no-site-packages the default
173- mkvirtualenv " source" > /dev/null 2>&1
174- cpvirtualenv " source" " destination" > /dev/null 2>&1
175- ngsp_file=" ` virtualenvwrapper_get_site_packages_dir` /../no-global-site-packages.txt"
176- assertTrue " $ngsp_file does not exist in copied env" " [ -f \" $ngsp_file \" ]"
177- }
178-
179140. " $test_dir /shunit2"
180-
0 commit comments