Skip to content

Commit c4ab4f5

Browse files
committed
test(cli): convert shell tests to pytest test cases
1 parent 91c1c27 commit c4ab4f5

File tree

6 files changed

+889
-308
lines changed

6 files changed

+889
-308
lines changed

tools/build_test_env.sh

+1-15
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

-291
This file was deleted.

0 commit comments

Comments
 (0)