#!/bin/bash

export base=$(readlink -f $(dirname $0)/..)
export PYTHONPATH=$base

echo "base=$base"
echo "PYTHONPATH=$PYTHONPATH"

tests="test_mongo.py test_auth.py  test_user.py"
tests="test_mongo.py"

for test in $tests
do
    echo "Running test $test"
    python $test
done

#!/bin/bash
export scripts="$(dirname $0)/.."
export base=$(readlink -f $scripts)
export tests=$(readlink -f $scripts/tests)
export PYTHONPATH=$base

echo "base=$base"
echo "tests=$tests"
echo "PYTHONPATH=$PYTHONPATH"

cd $tests

tests="test_mongo.py test_auth.py  test_user.py"
tests="test_mongo.py"
for test in $tests
do
    echo "Running test $test"
    python $test
done

Fix path when running out of tests folder
Fix path when running out of tests folder
