Skip to content

Commit 2230088

Browse files
committed
chore: fix
1 parent 8c88c30 commit 2230088

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

tests/test_engine.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -366,21 +366,22 @@ async def test_concurrent_processing(self):
366366

367367
large_payload = {f"key{i}": f"value{i}" for i in range(5)}
368368

369+
# Create mock params object (Python 3.8 compatible)
370+
mock_params = type(
371+
"MockParams",
372+
(),
373+
{
374+
"source_locale": "en",
375+
"target_locale": "es",
376+
"fast": False,
377+
"reference": None,
378+
},
379+
)()
380+
369381
# Test concurrent mode
370382
await self.engine._localize_raw(
371383
large_payload,
372-
await asyncio.to_thread(
373-
lambda: type(
374-
"MockParams",
375-
(),
376-
{
377-
"source_locale": "en",
378-
"target_locale": "es",
379-
"fast": False,
380-
"reference": None,
381-
},
382-
)()
383-
),
384+
mock_params,
384385
concurrent=True,
385386
)
386387

tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setup_method(self):
3030
self.engine = LingoDotDevEngine(
3131
{
3232
"api_key": api_key,
33-
"api_url": os.getenv("LINGO_DEV_API_URL", "https://engine.lingo.dev"),
33+
"api_url": os.getenv("LINGODOTDEV_API_URL", "https://engine.lingo.dev"),
3434
}
3535
)
3636

0 commit comments

Comments
 (0)