@@ -167,27 +167,30 @@ def test_zimui_dist_ko(self):
167167 self .create_scraper (zimui_dist = Path ("whatever" ))
168168
169169 @pytest .mark .parametrize (
170- "language, expected_fcc_lang" ,
170+ "language, expected_fcc_lang, expected_zim_lang " ,
171171 [
172- pytest .param ("eng " , "english " , id = "english " ),
173- pytest .param ("eng" , "english" , id = "english" ),
174- # pytest.param("cmn ", "chinese", id="chinese"),
175- # pytest.param("lzh", "chinese-traditional", id="chinese-traditional" ),
176- pytest .param ("eng" , "english" , id = "english" ),
177- pytest .param ("spa" , "espanol" , id = "espanol" ),
178- pytest .param ("deu" , "german" , id = "german" ),
179- pytest .param ("ita" , "italian" , id = "italian" ),
180- pytest .param ("jpn" , "japanese" , id = "japanese" ),
181- pytest .param ("por" , "portuguese" , id = "portuguese" ),
182- pytest .param ("ukr" , "ukrainian" , id = "ukrainian" ),
183- pytest .param ("swa" , "swahili" , id = "swahili" ),
172+ pytest .param ("zh-hans " , "chinese " , "zho" , id = "chinese " ),
173+ pytest .param (
174+ "zh-hant " , "chinese-traditional " , "zho" , id = "chinese-traditional"
175+ ),
176+ pytest .param ("eng" , "english" , "eng" , id = "english" ),
177+ pytest .param ("spa" , "espanol" , "spa" , id = "espanol" ),
178+ pytest .param ("deu" , "german" , "deu" , id = "german" ),
179+ pytest .param ("ita" , "italian" , "ita" , id = "italian" ),
180+ pytest .param ("jpn" , "japanese" , "jpn" , id = "japanese" ),
181+ pytest .param ("por" , "portuguese" , "por" , id = "portuguese" ),
182+ pytest .param ("ukr" , "ukrainian" , "ukr" , id = "ukrainian" ),
183+ pytest .param ("swa" , "swahili" , "swa" , id = "swahili" ),
184184 ],
185185 )
186- def test_fcc_lang_ok (self , language : str , expected_fcc_lang : str ):
186+ def test_fcc_lang_ok (
187+ self , language : str , expected_fcc_lang : str , expected_zim_lang : str
188+ ):
187189 scraper = self .create_scraper (language = language )
188190 context = Context .get ()
189191 assert context .language == language
190192 assert scraper .fcc_lang == expected_fcc_lang
193+ assert scraper .zim_lang == expected_zim_lang
191194
192195 def test_language_ko (self ):
193196 with pytest .raises (ValueError ):
0 commit comments