memgraph/tests/drivers/python/run.sh
Marko Budiselic 47b8a48df2 Python driver test.
Summary: Python driver test. Equivalent to all other driver tests.

Reviewers: mferencevic, teon.banek

Reviewed By: teon.banek

Subscribers: pullbot, buda

Differential Revision: https://phabricator.memgraph.io/D452
2017-06-12 15:53:43 +02:00

28 lines
451 B
Bash
Executable File

#!/bin/bash
VIRTUALENV=virtualenv
PIP=pip
PYTHON=python
WORKING_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -e
cd ${WORKING_DIR}
# system check
if ! which $VIRTUALENV >/dev/null; then
echo "Please install virtualenv!"
exit 1
fi
# setup virtual environment
if [ ! -d "ve3" ]; then
virtualenv -p python3 ve3
fi
source ve3/bin/activate
$PIP install --upgrade pip
$PIP install neo4j-driver
# execute test
$PYTHON test.py