Skip to content

Commit

Permalink
Merge pull request #1086 from python-gitlab/test/pytest-cli-tests
Browse files Browse the repository at this point in the history
test(cli): convert CLI shell tests to pytest test cases
  • Loading branch information
max-wittig committed Apr 29, 2020
2 parents 91c1c27 + c4ab4f5 commit 74b3ddc
Show file tree
Hide file tree
Showing 6 changed files with 889 additions and 308 deletions.
16 changes: 1 addition & 15 deletions tools/build_test_env.sh
Expand Up @@ -104,20 +104,6 @@ letsencrypt['enable'] = false
"$GITLAB_IMAGE:$GITLAB_TAG" >/dev/null
fi

LOGIN='root'
PASSWORD='5iveL!fe'
GITLAB() { gitlab --config-file "$CONFIG" "$@"; }
GREEN='\033[0;32m'
NC='\033[0m'
OK() { printf "${GREEN}OK${NC}\\n"; }
testcase() {
testname=$1; shift
testscript=$1; shift
printf %s "Testing ${testname}... "
eval "${testscript}" || fatal "test failed"
OK
}

if [ -z "$NOVENV" ]; then
log "Creating Python virtualenv..."
try $VENV_CMD "$VENV"
Expand All @@ -130,7 +116,7 @@ if [ -z "$NOVENV" ]; then
try pip install -e .

# to run generate_token.py
pip install requests-html
pip install requests-html pytest-console-scripts
fi

log "Waiting for gitlab to come online... "
Expand Down
291 changes: 0 additions & 291 deletions tools/cli_test_v4.sh

This file was deleted.

0 comments on commit 74b3ddc

Please sign in to comment.