@@ -31,7 +31,7 @@ def setUpClass(cls):
3131 cls .tmpdir = tempfile .mkdtemp ()
3232 cls .options = textworld .GameOptions ()
3333 cls .options .path = pjoin (cls .tmpdir , "tw-game.z8" )
34- cls .gamefile_z8 = textworld . generator . compile_game ( cls . game , cls .options )
34+ cls .game , cls . gamefile_z8 = testing . build_and_compile_game ( cls .options )
3535 cls .request_infos = EnvInfos (
3636 inventory = True ,
3737 description = True ,
@@ -185,7 +185,7 @@ def setUpClass(cls):
185185 cls .tmpdir = tempfile .mkdtemp ()
186186 cls .options = textworld .GameOptions ()
187187 cls .options .path = pjoin (cls .tmpdir , "tw-game.z8" )
188- cls .gamefile_z8 = textworld . generator . compile_game ( cls . game , cls .options )
188+ cls .game , cls . gamefile_z8 = testing . build_and_compile_game ( cls .options )
189189 cls .request_infos = EnvInfos (
190190 inventory = True ,
191191 description = True ,
@@ -270,7 +270,7 @@ def setUpClass(cls):
270270 cls .tmpdir = tempfile .mkdtemp ()
271271 cls .options = textworld .GameOptions ()
272272 cls .options .path = pjoin (cls .tmpdir , "tw-game.z8" )
273- cls .gamefile_z8 = textworld . generator . compile_game ( cls . game , cls .options )
273+ cls .game , cls . gamefile_z8 = testing . build_and_compile_game ( cls .options )
274274 cls .request_infos = EnvInfos (
275275 max_score = True ,
276276 objective = True ,
@@ -356,7 +356,7 @@ def setUpClass(cls):
356356 cls .tmpdir = tempfile .mkdtemp ()
357357 cls .options = textworld .GameOptions ()
358358 cls .options .path = pjoin (cls .tmpdir , "tw-game.z8" )
359- cls .gamefile_z8 = textworld . generator . compile_game ( cls . game , cls .options )
359+ cls .game , cls . gamefile_z8 = testing . build_and_compile_game ( cls .options )
360360 cls .request_infos = EnvInfos (
361361 facts = True ,
362362 policy_commands = True ,
0 commit comments