FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
virtualenvwrapper/tests/test_dir_stack.sh at main · python-virtualenvwrapper/virtualenvwrapper · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-virtualenvwrapper
/
virtualenvwrapper
Public
Notifications
You must be signed in to change notification settings
Fork
27
Star
162
Code
Issues
12
Pull requests
2
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
virtualenvwrapper
/
tests
/
test_dir_stack.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
48 lines (40 loc) · 909 Bytes
Breadcrumbs
virtualenvwrapper
/
tests
/
test_dir_stack.sh
Copy path
File metadata and controls
executable file
·
48 lines (40 loc) · 909 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
-*- mode: shell-script -*-
test_dir=
$(
cd
$(
dirname
$0
)
&&
pwd
)
source
"
$test_dir
/setup.sh
"
oneTimeSetUp
() {
test_begin_dir=
$(
pwd
)
}
oneTimeTearDown
() {
cd
"
$test_begin_dir
"
}
setUp
() {
rm -rf
"
$WORKON_HOME
"
mkdir -p
"
$WORKON_HOME
"
load_wrappers
mkdir
"
$WORKON_HOME
/start_here
"
mkdir
"
$WORKON_HOME
/on_the_stack
"
echo
}
tearDown
() {
if
type
deactivate
>
/dev/null
2>&1
then
deactivate
fi
rm -rf
"
$WORKON_HOME
"
}
test_ticket_101
() {
mkvirtualenv some_env
deactivate
cd
"
$WORKON_HOME
/start_here
"
pushd
"
$WORKON_HOME
/on_the_stack
"
rmvirtualenv some_env
mkvirtualenv some_env
>
/dev/null
2>&1
#
echo "After mkvirtualenv: `pwd`"
deactivate
#
echo "After deactivate: `pwd`"
popd
#
echo "After popd: `pwd`"
current_dir=
$(
pwd
)
assertSame
"
$WORKON_HOME
/start_here
"
"
$current_dir
"
}
.
"
$test_dir
/shunit2
"
Back
|
FazBrowse Home
|
New Git URL