mirror of
https://github.com/run-llama/llama-cloud-py.git
synced 2026-08-24 10:52:54 -04:00
22 lines
459 B
Bash
Executable File
22 lines
459 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
export DEFER_PYDANTIC_BUILD=false
|
|
|
|
echo "==> Running tests"
|
|
if is_overriding_api_base_url ; then
|
|
# Running against real API - run all tests
|
|
rye run pytest "$@"
|
|
else
|
|
# Running against mock server - skip test_index.py (requires real API)
|
|
rye run pytest --ignore=tests/test_index.py "$@"
|
|
fi
|
|
|
|
echo "==> Running Pydantic v1 tests"
|
|
rye run nox -s test-pydantic-v1 -- --ignore=tests/test_index.py "$@"
|