#!/bin/sh

set -e

TEMP_DIR=$(mktemp -d)

# Copy tests somewhere else to ensure we are testing the installed version
cp -a ./tests $TEMP_DIR/

# pyproject.toml is necessary for pytest configuration
cp pyproject.toml $TEMP_DIR/

cd $TEMP_DIR

ls -al

pytest tests/
