File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ cleanup() {
18
18
rm -f /tmp/python-gitlab.cfg
19
19
docker kill gitlab-test > /dev/null 2>&1
20
20
docker rm gitlab-test > /dev/null 2>&1
21
+ deactivate || true
22
+ rm -rf $VENV
21
23
}
22
24
trap cleanup EXIT
23
25
@@ -27,6 +29,12 @@ LOGIN='root'
27
29
PASSWORD=' 5iveL!fe'
28
30
CONFIG=/tmp/python-gitlab.cfg
29
31
GITLAB=" gitlab --config-file $CONFIG "
32
+ VENV=$( pwd) /.venv
33
+
34
+ virtualenv $VENV
35
+ . $VENV /bin/activate
36
+ pip install -rrequirements.txt
37
+ pip install -e .
30
38
31
39
GREEN=' \033[0;32m'
32
40
NC=' \033[0m'
@@ -77,11 +85,11 @@ USER_ID=$($GITLAB user create --email fake@email.com --username user1 --name "Us
77
85
$OK
78
86
79
87
echo -n " Testing verbose output... "
80
- $GITLAB user list | grep -q avatar-url
88
+ $GITLAB -v user list | grep -q avatar-url
81
89
$OK
82
90
83
91
echo -n " Testing CLI args not in output... "
84
- $GITLAB user list | grep -v config-file
92
+ $GITLAB -v user list | grep -qv config-file
85
93
$OK
86
94
87
95
echo -n " Testing adding member to a project... "
You can’t perform that action at this time.
0 commit comments