File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments