Update tests

This commit is contained in:
Mathieu Comandon 2017-03-03 11:13:59 -08:00
parent bc01ab0347
commit dfe1dad1fe
2 changed files with 3 additions and 2 deletions

View file

@ -274,7 +274,8 @@ class GameDialogCommon(object):
game_sw = self.build_scrolled_window(self.game_box)
else:
game_sw = Gtk.Label(label=self.no_runner_label)
self.game.runner = None
if self.game:
self.game.runner = None
self._add_notebook_tab(game_sw, "Game options")
def _build_runner_tab(self, config_level):

View file

@ -21,7 +21,7 @@ class TestGameDialogCommon(TestCase):
dlg = config_dialogs.GameDialogCommon()
list_store = dlg._get_runner_liststore()
self.assertTrue(
list_store[1][0].startswith(runners.get_installed()[0].name)
list_store[1][0].startswith(runners.get_installed()[0].human_name)
)
self.assertEqual(list_store[1][1], runners.get_installed()[0].name)