@@ -36,7 +36,7 @@ def test_run(decoy: Decoy) -> None:
3636
3737 pretranslations = json .loads (env .target_pretranslations )
3838 assert len (pretranslations ) == 1
39- assert pretranslations [0 ]["pretranslation " ] == "Please, I have booked a room."
39+ assert pretranslations [0 ]["translation " ] == "Please, I have booked a room."
4040 if is_eflomal_available ():
4141 assert pretranslations [0 ]["source_toks" ] == [
4242 "Por" ,
@@ -48,11 +48,11 @@ def test_run(decoy: Decoy) -> None:
4848 "habitación" ,
4949 "." ,
5050 ]
51- assert pretranslations [0 ]["pretranslation_toks " ] == ["Please" , "," , "I" , "have" , "booked" , "a" , "room" , "." ]
51+ assert pretranslations [0 ]["translation_toks " ] == ["Please" , "," , "I" , "have" , "booked" , "a" , "room" , "." ]
5252 assert len (pretranslations [0 ]["alignment" ]) > 0
5353 else :
5454 assert pretranslations [0 ]["source_toks" ] == []
55- assert pretranslations [0 ]["pretranslation_toks " ] == []
55+ assert pretranslations [0 ]["translation_toks " ] == []
5656 assert len (pretranslations [0 ]["alignment" ]) == 0
5757 decoy .verify (env .translation_file_service .save_model (Path ("model.tar.gz" ), "models/save-model.tar.gz" ), times = 1 )
5858
@@ -130,9 +130,9 @@ def __init__(self, decoy: Decoy) -> None:
130130 corpusId = "corpus1" ,
131131 textId = "text1" ,
132132 refs = ["ref1" ],
133- pretranslation = "Por favor, tengo reservada una habitación." ,
133+ translation = "Por favor, tengo reservada una habitación." ,
134134 source_toks = [],
135- pretranslation_toks = [],
135+ translation_toks = [],
136136 alignment = "" ,
137137 )
138138 ]
@@ -148,9 +148,9 @@ def __init__(self, decoy: Decoy) -> None:
148148 corpusId = "corpus1" ,
149149 textId = "text1" ,
150150 refs = ["ref1" ],
151- pretranslation = "Please, I have booked a room." ,
151+ translation = "Please, I have booked a room." ,
152152 source_toks = [],
153- pretranslation_toks = [],
153+ translation_toks = [],
154154 alignment = "" ,
155155 )
156156 ]
0 commit comments