Skip to content

Commit 284325c

Browse files
committed
add test for --no-site-packages flag after cpvirtualenv; addresses #102
1 parent 719b251 commit 284325c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cp.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,13 @@ GLOBAL postcpvirtualenv"
110110
rm -f "$WORKON_HOME/postmkvirtualenv"
111111
}
112112

113+
test_no_site_packages () {
114+
# See issue #102
115+
mkvirtualenv "source" --no-site-packages
116+
cpvirtualenv "source" "destination"
117+
ngsp_file="`virtualenvwrapper_get_site_packages_dir`/../no-global-site-packages.txt"
118+
assertTrue "$ngsp_file does not exist in copied env" "[ -f \"$ngsp_file\" ]"
119+
}
120+
113121
. "$test_dir/shunit2"
114122

0 commit comments

Comments
 (0)