Dispatcharr/apps/epg/tests
SergeantPanda 6bf126d432 feat(epg): Enhance Schedules Direct token management and request handling
This commit introduces a new `sd_authorized_request` function to streamline authenticated API requests to Schedules Direct. It handles token expiration by clearing the cached token and retrying the request with a fresh token when necessary. Additionally, the `sd_obtain_token` function has been updated to reuse cached tokens when valid, improving efficiency. The changes are accompanied by unit tests to ensure correct behavior during token reuse and request retries, enhancing the overall reliability of the Schedules Direct integration.
2026-07-23 19:42:12 +00:00
..
fixtures test(epg,frontend): add coverage for current-program lookup and preview behavior 2026-05-31 17:13:11 +02:00
__init__.py feat: add subtitle and season/episode to TV guide 2026-03-05 23:41:16 -06:00
test_current_programs_api.py test(epg,frontend): add coverage for current-program lookup and preview behavior 2026-05-31 17:13:11 +02:00
test_entity_resolution.py Enhancement: Update changelog to reflect changes in ChannelPagination, ensuring pagination works correctly with only page_size provided. Refactor tests to improve reliability and consistency, including adjustments to database connection management in various test cases. Modify EPG name normalization tests for accuracy and clarity, and enhance program data serializer tests to utilize precomputed season and episode values. 2026-07-07 18:30:06 +00:00
test_epg_import_api.py refactor(epg): separate programme index into dedicated table for optimized data handling 2026-06-23 15:10:27 -05:00
test_epg_search_api.py Enhancement: Update changelog to reflect changes in ChannelPagination, ensuring pagination works correctly with only page_size provided. Refactor tests to improve reliability and consistency, including adjustments to database connection management in various test cases. Modify EPG name normalization tests for accuracy and clarity, and enhance program data serializer tests to utilize precomputed season and episode values. 2026-07-07 18:30:06 +00:00
test_epg_source_file_lock.py fix(epg): Enhance EPG data refresh and parsing logic to prevent data loss and improve concurrency handling. Implement deferred processing for ongoing tasks, ensuring stability during refresh operations. Update changelog with significant fixes and improvements. 2026-07-02 13:34:53 -05:00
test_fetch_xmltv_xz.py feat(epg): add native xz decompression support for EPG sources 2026-07-07 19:48:44 -05:00
test_parse_programs_for_source.py fix(epg): Enhance EPG data refresh and parsing logic to prevent data loss and improve concurrency handling. Implement deferred processing for ongoing tasks, ensuring stability during refresh operations. Update changelog with significant fixes and improvements. 2026-07-02 13:34:53 -05:00
test_parse_programs_for_tvg_id.py Enhancement: Update changelog to reflect changes in ChannelPagination, ensuring pagination works correctly with only page_size provided. Refactor tests to improve reliability and consistency, including adjustments to database connection management in various test cases. Modify EPG name normalization tests for accuracy and clarity, and enhance program data serializer tests to utilize precomputed season and episode values. 2026-07-07 18:30:06 +00:00
test_parsing_channels_progress.py feat(epg): Implement channel parsing progress tracking and update progress reporting logic in parse_channels_only function 2026-07-01 17:07:47 -05:00
test_programme_index.py fix(epg): Enhance EPG data refresh and parsing logic to prevent data loss and improve concurrency handling. Implement deferred processing for ongoing tasks, ensuring stability during refresh operations. Update changelog with significant fixes and improvements. 2026-07-02 13:34:53 -05:00
test_refresh_db_recovery.py fix(epg): enhance DB connection management and error handling during EPG refreshes 2026-06-18 16:39:52 -05:00
test_schedules_direct.py feat(epg): Enhance Schedules Direct token management and request handling 2026-07-23 19:42:12 +00:00
test_serializers.py feat(epg): Enhance Schedules Direct poster handling with caching and proxy improvements 2026-07-21 18:37:57 +00:00
test_upload_security.py refactor(permissions): enhance permission handling across various viewsets 2026-07-18 20:03:03 +00:00
test_xz_support.py feat(epg): add native xz decompression support for EPG sources 2026-07-07 19:48:44 -05:00