Commits

Doug Hellmann committed daf7a3c

Identify another --no-site-packages test and add one for cpvirtualenv using the default args variable; addresses #102

  • Participants
  • Parent commits 284325c

Comments (0)

Files changed (2)

 
 test_no_site_packages () {
     # See issue #102
-    mkvirtualenv "source" --no-site-packages
+    mkvirtualenv "source" --no-site-packages >/dev/null 2>&1
     cpvirtualenv "source" "destination"
     ngsp_file="`virtualenvwrapper_get_site_packages_dir`/../no-global-site-packages.txt"
     assertTrue "$ngsp_file does not exist in copied env" "[ -f \"$ngsp_file\" ]"
 }
 
+test_no_site_packages_default_args () {
+    # See issue #102
+    VIRTUALENVWRAPPER_VIRTUALENV_ARGS="--no-site-packages"
+    # With the argument, verify that they are not copied.
+    mkvirtualenv "source" >/dev/null 2>&1
+    cpvirtualenv "source" "destination"
+    ngsp_file="`virtualenvwrapper_get_site_packages_dir`/../no-global-site-packages.txt"
+    assertTrue "$ngsp_file does not exist" "[ -f \"$ngsp_file\" ]"
+    unset VIRTUALENVWRAPPER_VIRTUALENV_ARGS
+}
+
 . "$test_dir/shunit2"
 

tests/test_mkvirtualenv.sh

 }
 
 test_mkvirtualenv_args () {
+    # See issue #102
     VIRTUALENVWRAPPER_VIRTUALENV_ARGS="--no-site-packages"
     # With the argument, verify that they are not copied.
     mkvirtualenv "without_sp2" >/dev/null 2>&1