File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,17 @@ test_mkvirtualenv_activates () {
70
70
assertSame " env2" $( basename " $VIRTUAL_ENV " )
71
71
}
72
72
73
+ test_postmkvirtualenv () {
74
+ echo " echo GLOBAL postmkvirtualenv > $test_dir /catch_output" > " $WORKON_HOME /postmkvirtualenv"
75
+ mkvirtualenv " env3"
76
+ output=$( cat " $test_dir /catch_output" )
77
+ expected=" GLOBAL postmkvirtualenv"
78
+ assertSame " $expected " " $output "
79
+ rm -f " $WORKON_HOME /postmkvirtualenv"
80
+ deactivate
81
+ rmvirtualenv " env3"
82
+ }
83
+
73
84
test_no_virtualenv () {
74
85
old_path=" $PATH "
75
86
PATH=" /usr/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$HOME /bin"
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ function mkvirtualenv () {
173
173
virtualenvwrapper_make_hook " $WORKON_HOME /$envname /bin/postdeactivate" " This hook is sourced after the virtualenv is deactivated."
174
174
# Now activate the new environment
175
175
workon " $envname "
176
- virtualenvwrapper_source_hook " $WORKON_HOME /$envname / postmkvirtualenv"
176
+ virtualenvwrapper_source_hook " $WORKON_HOME /postmkvirtualenv"
177
177
}
178
178
179
179
# Remove an environment, in the WORKON_HOME.
You can’t perform that action at this time.
0 commit comments