The open-source AI voice studio. Clone, dictate, create.
fix(tests): repair test_profile_duplicate_names so the suite can run
Lvigentini63f09455ef52
diff --git a/backend/tests/test_profile_duplicate_names.py b/backend/tests/test_profile_duplicate_names.pyindex 1a9b5672..a3a0a45a 100644--- a/backend/tests/test_profile_duplicate_names.py+++ b/backend/tests/test_profile_duplicate_names.py@@ -12,7 +12,7 @@ from pathlib import Pathfrom sqlalchemy import create_enginefrom sqlalchemy.orm import sessionmaker-from backend.database import Base, VoiceProfile as DBVoiceProfile+from backend.database import Basefrom backend.models import VoiceProfileCreatefrom backend.services.profiles import create_profile, update_profile@@ -33,8 +33,11 @@ def test_db():yield db- # Cleanup+ # Cleanup. The engine must be disposed as well as the session closed —+ # on Windows the pooled connection keeps the .db file open and rmtree+ # fails with WinError 32.db.close()+ engine.dispose()shutil.rmtree(temp_dir)