#!/bin/bash

set -eu
set -o pipefail

# Skip tests that need the internet
export HTTP_PROXY=127.0.0.1:9
export HTTPS_PROXY=127.0.0.1:9

rm -rf "${AUTOPKGTEST_TMP}/tests"
cp -r azure-kusto-data/tests "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
for p in $(py3versions -s); do
    "${p}" -m pytest -v --deselect=tests/test_security.py::test_unauthorized_exception
done
