Skip to content

Commit 4a675e3

Browse files
committed
Add test for creating venv with space in name
Create a virtualenv with a space in the name of the env, not just the WORKON_HOME. Addresses #248 Change-Id: I385163fda808b146b5863826b79a2bd337aadc7a
1 parent 7a8a268 commit 4a675e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_mkvirtualenv.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ test_create() {
2828
done
2929
}
3030

31+
test_create_space_in_name() {
32+
mkvirtualenv "env with space" >/dev/null 2>&1
33+
assertTrue "Environment directory was not created" "[ -d \"$WORKON_HOME/env with space\" ]"
34+
for hook in postactivate predeactivate postdeactivate
35+
do
36+
assertTrue "$hook was not created" "[ -f \"$WORKON_HOME/env with space/bin/$hook\" ]"
37+
assertFalse "$hook is executable" "[ -x \"$WORKON_HOME/env with space/bin/$hook\" ]"
38+
done
39+
}
40+
3141
test_activates () {
3242
mkvirtualenv "env2" >/dev/null 2>&1
3343
assertTrue virtualenvwrapper_verify_active_environment

0 commit comments

Comments
 (0)