Skip to content

Commit 2223c83

Browse files
committed
Added test for cdsitepackages with argument
1 parent 3bc9e44 commit 2223c83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ test_cdsitepackages () {
8282
popd >/dev/null
8383
}
8484

85+
test_cdsitepackages_with_arg () {
86+
pushd "$(pwd)" >/dev/null
87+
pyvers=$(python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d.)
88+
sitepackage_subdir="$VIRTUAL_ENV/lib/python${pyvers}/site-packages/subdir"
89+
mkdir -p "${sitepackage_subdir}"
90+
cdsitepackages subdir
91+
assertSame "$sitepackage_subdir" "$(pwd)"
92+
popd >/dev/null
93+
}
94+
8595
test_mkvirtualenv_activates () {
8696
mkvirtualenv "env2"
8797
assertTrue virtualenvwrapper_verify_active_environment

0 commit comments

Comments
 (0)