- Remove dependency on external Prism mock server - Create comprehensive respx mock fixtures for all endpoints - Fix SDK bugs in organization.py (incorrect return types) - Update test script to use respx mocks instead of Prism - All 3,141 tests now pass without external dependencies
28 lines
651 B
Bash
Executable File
28 lines
651 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[0;33m'
|
|
NC='\033[0m' # No Color
|
|
|
|
# No longer need Prism server - using respx mocks instead
|
|
echo -e "${GREEN}✔ Using respx mocks for testing (no external server required)${NC}"
|
|
echo
|
|
|
|
export DEFER_PYDANTIC_BUILD=false
|
|
|
|
echo "==> Running tests"
|
|
rye run pytest "$@"
|
|
|
|
# Skip Pydantic v1 tests if nox is not available
|
|
if command -v nox >/dev/null 2>&1 || rye run python -c "import nox" 2>/dev/null; then
|
|
echo "==> Running Pydantic v1 tests"
|
|
rye run nox -s test-pydantic-v1 -- "$@"
|
|
else
|
|
echo "==> Skipping Pydantic v1 tests (nox not available)"
|
|
fi
|