File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 19
19
- Updated test configuration so they work properly under Linux.
20
20
- Resolve relative paths before storing the project directory
21
21
reference in :ref: `command-setvirtualenvproject `. (:bbissue: `207 `)
22
+ - Do not create hooks for commands that don't exist. (:bbissue: `203 `)
22
23
23
24
4.1.1
24
25
=====
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ setUp () {
22
22
23
23
test_initialize () {
24
24
source " $test_dir /../virtualenvwrapper.sh"
25
- for hook in premkproject postmkproject prermproject postrmproject
25
+ for hook in premkproject postmkproject
26
26
do
27
27
assertTrue " Global $hook was not created" " [ -f $WORKON_HOME /$hook ]"
28
28
assertTrue " Global $hook is not executable" " [ -x $WORKON_HOME /$hook ]"
@@ -33,7 +33,7 @@ test_initialize_hook_dir() {
33
33
export VIRTUALENVWRAPPER_HOOK_DIR=" $WORKON_HOME /hooks"
34
34
mkdir -p " $VIRTUALENVWRAPPER_HOOK_DIR "
35
35
source " $test_dir /../virtualenvwrapper.sh"
36
- for hook in premkproject postmkproject prermproject postrmproject
36
+ for hook in premkproject postmkproject
37
37
do
38
38
assertTrue " Global $hook was not created" " [ -f $VIRTUALENVWRAPPER_HOOK_DIR /$hook ]"
39
39
assertTrue " Global $hook is not executable" " [ -x $VIRTUALENVWRAPPER_HOOK_DIR /$hook ]"
Original file line number Diff line number Diff line change 19
19
"and before it is activated." ),
20
20
("postmkproject" ,
21
21
"This hook is run after a new project is activated." ),
22
-
23
- # rmproject
24
- ("prermproject" ,
25
- "This hook is run before a project is deleted." ),
26
- ("postrmproject" ,
27
- "This hook is run after a project is deleted." ),
28
22
]
29
23
30
24
You can’t perform that action at this time.
0 commit comments