diff --git a/docs/development.md b/docs/development.md index 0af36b9..ca1e50c 100644 --- a/docs/development.md +++ b/docs/development.md @@ -7,7 +7,7 @@ authoring are documented in the main [README](../README.md) and ## Test environment Tests require uv and Typst. `tests/test.sh` creates `.venv` and synchronizes the pinned -packages from `requirements.txt`, and invokes Python only from that environment. +packages from `tests/requirements.txt`, and invokes Python only from that environment. ```bash ./tests/test.sh diff --git a/requirements.txt b/tests/requirements.txt similarity index 100% rename from requirements.txt rename to tests/requirements.txt diff --git a/tests/test.sh b/tests/test.sh index c2e561d..7438c7a 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -2,5 +2,5 @@ set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." uv venv --python 3.11 --allow-existing .venv -uv pip sync --python .venv/bin/python requirements.txt +uv pip sync --python .venv/bin/python tests/requirements.txt .venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v