test: isolate pytest runtime defaults across workers and runs

This commit is contained in:
Alexandre Teixeira
2026-10-03 03:46:52 +01:00
parent a52c657150
commit 6eb0bbfe70
7 changed files with 186 additions and 12 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ import tempfile
from services.stt.stt_service import STTService
def test_stt_local_transcribe_leak_on_error():
def test_stt_local_transcribe_leak_on_error(tmp_path, monkeypatch):
monkeypatch.setattr(tempfile, "tempdir", str(tmp_path))
service = STTService()
class MockWhisper: