Skip to content

Fix test failures after AI dependencies installation#168

Merged
tarekio merged 5 commits intomainfrom
full-deps-tests-fixes
Aug 29, 2025
Merged

Fix test failures after AI dependencies installation#168
tarekio merged 5 commits intomainfrom
full-deps-tests-fixes

Conversation

@level09
Copy link
Collaborator

@level09 level09 commented Aug 27, 2025

Problem: Installing optional AI dependencies (uv sync --extra ai) caused 6 test failures due to hardcoded test configuration and state pollution.

Root Causes:

  • Test config hardcoded HAS_WHISPER = False while deps were actually installed
  • Redis security keys persisted between tests causing "already requested" errors
  • Setup wizard tests missing admin user for authentication

Solution:

  • Use dynamic dependency detection in tests instead of hardcoded values
  • Add Redis cleanup to prevent cross-test state pollution
  • Create admin user in uninitialized test fixtures

Result: All 764 tests now pass with or without AI dependencies installed.

- Use dynamic dependency detection in tests instead of hardcoded values
- Add Redis cleanup to prevent test state pollution
- Create admin user in uninitialized test fixtures

Fixes 6 test failures that occurred after installing optional AI deps
@level09 level09 self-assigned this Aug 27, 2025
@tarekio tarekio merged commit 9ea7989 into main Aug 29, 2025
7 checks passed
@tarekio tarekio deleted the full-deps-tests-fixes branch August 29, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants