Skip to content

Commit 966a161

Browse files
committed
test(cli): convert shell tests to pytest test cases
1 parent 5a75310 commit 966a161

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy