Skip to content

test(cli): convert CLI shell tests to pytest test cases #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions tools/build_test_env.sh
Original file line number Diff line number Diff line change
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.

Loading