fix(tests): escape Windows paths in cleanup Redis mock
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m40s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m40s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
@@ -118,8 +119,8 @@ async def test_orphan_deletion(temp_dirs):
|
||||
|
||||
mock_redis = AsyncMock()
|
||||
mock_redis.keys.return_value = ["translation:file:job1"]
|
||||
mock_redis.get.return_value = (
|
||||
'{"file_path": "' + str(tracked_file.absolute()) + '"}'
|
||||
mock_redis.get.return_value = json.dumps(
|
||||
{"file_path": str(tracked_file.absolute())}
|
||||
)
|
||||
|
||||
with _get_redis_patcher(mock_redis):
|
||||
|
||||
Reference in New Issue
Block a user