Dispatcharr/tests/.env.example
Northern Powerhouse 5dac7acc93 Add comprehensive test suite for EPG search API endpoint
- Add pytest-based test suite with 32+ test cases
- Test all features: text search, AND/OR operators, regex, whole words
- Test time filtering: airing_at, start/end time ranges
- Test channel/stream/group filtering
- Test pagination and field selection
- Test edge cases and error handling
- Configurable via environment variables (host, port, credentials)
- Include test runner script and documentation
- Support for CI/CD integration with JUnit XML output

Usage:
  ./tests/run_tests.sh
  pytest tests/test_epg_search_api.py -v
  DISPATCHARR_HOST=192.168.1.180 pytest tests/test_epg_search_api.py -v
2026-02-14 15:52:47 +01:00

16 lines
416 B
Text

# EPG Search API Test Configuration
# Copy this file to .env and fill in your values
# Server Configuration
DISPATCHARR_HOST=localhost
DISPATCHARR_PORT=9191
DISPATCHARR_HTTPS=false
# Authentication
DISPATCHARR_USERNAME=admin
DISPATCHARR_PASSWORD=admin
# Optional: Fixed timestamp for time-based tests
# If not set, uses current time
# Format: ISO 8601 (YYYY-MM-DDTHH:MM:SSZ)
# TEST_TIMESTAMP=2026-02-14T20:00:00Z