fix(tests): escape Windows paths in cleanup Redis mock
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m40s

This commit is contained in:
2026-06-14 19:34:01 +02:00
parent b9446f166d
commit f85e5eef9b

View File

@@ -1,3 +1,4 @@
import json
import os import os
import sys import sys
import unittest import unittest
@@ -118,8 +119,8 @@ async def test_orphan_deletion(temp_dirs):
mock_redis = AsyncMock() mock_redis = AsyncMock()
mock_redis.keys.return_value = ["translation:file:job1"] mock_redis.keys.return_value = ["translation:file:job1"]
mock_redis.get.return_value = ( mock_redis.get.return_value = json.dumps(
'{"file_path": "' + str(tracked_file.absolute()) + '"}' {"file_path": str(tracked_file.absolute())}
) )
with _get_redis_patcher(mock_redis): with _get_redis_patcher(mock_redis):