#!/bin/sh -e

TESTS_TO_EXCLUDE="not test_response_code and \
not test_random_body and \
not test_response_headers and \
not test_effective_url and \
not test_multiple_requests and \
not test_get_data and \
not test_post_data and \
not test_post_unicode_data and \
not test_decorator and \
not test_cross_scheme and \
not test_unsupported_features_raise_error_disabled and \
not test_cannot_overwrite_cassette_raise_error_disabled"

cp -r tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

py3versions -s | tr ' ' '\n' | xargs -I {} env {} -Wd -m pytest -k "${TESTS_TO_EXCLUDE}" -v -x -rs 2>&1

