Mocked tests that require no external setup:
uv run pytest -s -v tests/This test runs against a live Unstract API deployment.
- Copy
tests/sample.envto.envin the project root:cp tests/sample.env .env
- Fill in the values:
API_URL— your API deployment URLUNSTRACT_API_DEPLOYMENT_KEY— your raw API key (without the"Bearer "prefix; the client adds it automatically)TEST_FILES— comma-separated paths to files for structuring (e.g./path/to/test1.pdf,/path/to/test2.pdf)
uv run python tests/client_test.py