mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Test get_list_store
This commit is contained in:
parent
da1202c9b3
commit
6733548d21
|
@ -1,5 +1,15 @@
|
|||
from lutris.gui import config_dialogs
|
||||
from unittest import TestCase
|
||||
from lutris import runners
|
||||
|
||||
|
||||
class TestGameDialogCommon(TestCase):
|
||||
def test_get_runner_liststore(self):
|
||||
dlg = config_dialogs.GameDialogCommon()
|
||||
list_store = dlg.get_runner_liststore()
|
||||
self.assertEqual(list_store[0][0], dlg.no_runner_label)
|
||||
self.assertTrue(list_store[1][0].startswith(runners.__all__[0]))
|
||||
self.assertEqual(list_store[1][1], runners.__all__[0])
|
||||
|
||||
|
||||
class TestGameDialog(TestCase):
|
||||
|
|
Loading…
Reference in a new issue