Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74b3ddc

Browse files
authored
Merge pull request#1086 from python-gitlab/test/pytest-cli-tests
test(cli): convert CLI shell tests to pytest test cases
2 parents91c1c27 +c4ab4f5 commit74b3ddc

File tree

6 files changed

+889
-308
lines changed

6 files changed

+889
-308
lines changed

‎tools/build_test_env.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,6 @@ letsencrypt['enable'] = false
104104
"$GITLAB_IMAGE:$GITLAB_TAG">/dev/null
105105
fi
106106

107-
LOGIN='root'
108-
PASSWORD='5iveL!fe'
109-
GITLAB() { gitlab --config-file"$CONFIG""$@"; }
110-
GREEN='\033[0;32m'
111-
NC='\033[0m'
112-
OK() {printf"${GREEN}OK${NC}\\n"; }
113-
testcase() {
114-
testname=$1;shift
115-
testscript=$1;shift
116-
printf %s"Testing${testname}..."
117-
eval"${testscript}"|| fatal"test failed"
118-
OK
119-
}
120-
121107
if [-z"$NOVENV" ];then
122108
log"Creating Python virtualenv..."
123109
try$VENV_CMD"$VENV"
@@ -130,7 +116,7 @@ if [ -z "$NOVENV" ]; then
130116
try pip install -e.
131117

132118
# to run generate_token.py
133-
pip install requests-html
119+
pip install requests-html pytest-console-scripts
134120
fi
135121

136122
log"Waiting for gitlab to come online..."

‎tools/cli_test_v4.sh

Lines changed: 0 additions & 291 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp