File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -70,12 +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"
73
+ test_mkvirtualenv_hooks () {
74
+ export pre_test_dir=$( cd " $test_dir " ; pwd)
75
+ echo " echo GLOBAL premkvirtualenv >> \" $pre_test_dir /catch_output\" " >> " $WORKON_HOME /premkvirtualenv"
76
+ chmod +x " $WORKON_HOME /premkvirtualenv"
77
+ echo " echo GLOBAL postmkvirtualenv >> $test_dir /catch_output" > " $WORKON_HOME /postmkvirtualenv"
75
78
mkvirtualenv " env3"
76
79
output=$( cat " $test_dir /catch_output" )
77
- expected=" GLOBAL postmkvirtualenv"
80
+ expected=" GLOBAL premkvirtualenv
81
+ GLOBAL postmkvirtualenv"
78
82
assertSame " $expected " " $output "
83
+ rm -f " $WORKON_HOME /premkvirtualenv"
79
84
rm -f " $WORKON_HOME /postmkvirtualenv"
80
85
deactivate
81
86
rmvirtualenv " env3"
You can’t perform that action at this time.
0 commit comments