2525from app .models import DocumentStatus
2626from app .schema import DocumentTask
2727from app .translation_memory .models import TranslationMemory
28- from app .translation_memory .schema import TranslationMemoryUsage
2928
3029# pylint: disable=C0116
3130
@@ -296,9 +295,7 @@ def test_process_sets_document_in_pending_stage_and_creates_task_xliff(
296295 response = user_logged_client .post (
297296 "/document/1/process" ,
298297 json = {
299- "substitute_numbers" : False ,
300298 "machine_translation_settings" : None ,
301- "memory_usage" : TranslationMemoryUsage .NEWEST .value ,
302299 },
303300 )
304301
@@ -318,9 +315,7 @@ def test_process_sets_document_in_pending_stage_and_creates_task_txt(
318315 response = user_logged_client .post (
319316 "/document/1/process" ,
320317 json = {
321- "substitute_numbers" : False ,
322318 "machine_translation_settings" : None ,
323- "memory_usage" : TranslationMemoryUsage .NEWEST .value ,
324319 },
325320 )
326321
@@ -340,9 +335,7 @@ def test_process_creates_task_for_xliff(
340335 response = user_logged_client .post (
341336 "/document/1/process" ,
342337 json = {
343- "substitute_numbers" : False ,
344338 "machine_translation_settings" : None ,
345- "memory_usage" : TranslationMemoryUsage .NEWEST .value ,
346339 },
347340 )
348341
@@ -356,9 +349,7 @@ def test_process_creates_task_for_xliff(
356349 "type" : "xliff" ,
357350 "document_id" : 1 ,
358351 "settings" : {
359- "substitute_numbers" : False ,
360352 "machine_translation_settings" : None ,
361- "memory_usage" : "newest" ,
362353 "similarity_threshold" : 1.0 ,
363354 },
364355 }
@@ -371,9 +362,7 @@ def test_process_creates_task_for_txt(user_logged_client: TestClient, session: S
371362 response = user_logged_client .post (
372363 "/document/1/process" ,
373364 json = {
374- "substitute_numbers" : False ,
375365 "machine_translation_settings" : None ,
376- "memory_usage" : TranslationMemoryUsage .NEWEST .value ,
377366 },
378367 )
379368
@@ -387,9 +376,7 @@ def test_process_creates_task_for_txt(user_logged_client: TestClient, session: S
387376 "type" : "txt" ,
388377 "document_id" : 1 ,
389378 "settings" : {
390- "substitute_numbers" : False ,
391379 "machine_translation_settings" : None ,
392- "memory_usage" : "newest" ,
393380 "similarity_threshold" : 1.0 ,
394381 },
395382 }
@@ -401,9 +388,7 @@ def test_returns_404_when_processing_nonexistent_doc(
401388 response = user_logged_client .post (
402389 "/document/1/process" ,
403390 json = {
404- "substitute_numbers" : False ,
405391 "machine_translation_settings" : None ,
406- "memory_usage" : TranslationMemoryUsage .NEWEST .value ,
407392 },
408393 )
409394 assert response .status_code == 404
0 commit comments