Files
ivatar/run_tests_no_ot.sh
Oliver Falk a19fd6ffa2 Fix test scripts to use Django test suite instead of pytest
- Replace pytest with python3 manage.py test in both scripts
- Remove pytest.ini configuration file
- Maintain consistency with existing testing approach
- Include all test modules explicitly for better control
2025-10-16 17:28:21 +02:00

31 lines
848 B
Bash
Executable File

#!/bin/bash
# Run tests without OpenTelemetry enabled (default mode)
# This is the default test mode for most users
set -e
echo "Running tests without OpenTelemetry (default mode)..."
echo "====================================================="
# Ensure OpenTelemetry is disabled
export ENABLE_OPENTELEMETRY=false
export OTEL_ENABLED=false
# Run Django tests excluding OpenTelemetry-specific tests
python3 manage.py test \
ivatar.ivataraccount.test_auth \
ivatar.ivataraccount.test_views \
ivatar.ivataraccount.test_views_bluesky \
ivatar.test_auxiliary \
ivatar.test_file_security \
ivatar.test_static_pages \
ivatar.test_utils \
ivatar.test_views \
ivatar.test_views_stats \
ivatar.tools.test_views \
ivatar.test_wsgi \
-v2
echo ""
echo "Tests completed successfully (OpenTelemetry disabled)"