mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Make application a mandatory parameter of LutrisWindow + fix tests
This commit is contained in:
parent
d4bd1b5cda
commit
b1788f4e9e
|
@ -50,7 +50,7 @@ class LutrisWindow(Gtk.ApplicationWindow):
|
|||
connection_label = GtkTemplate.Child()
|
||||
status_box = GtkTemplate.Child()
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
def __init__(self, application, **kwargs):
|
||||
self.runtime_updater = RuntimeUpdater()
|
||||
self.running_game = None
|
||||
self.threads_stoppers = []
|
||||
|
@ -81,6 +81,7 @@ class LutrisWindow(Gtk.ApplicationWindow):
|
|||
super().__init__(default_width=width,
|
||||
default_height=height,
|
||||
icon_name='lutris',
|
||||
application=application,
|
||||
**kwargs)
|
||||
self.init_template()
|
||||
self._init_actions()
|
||||
|
|
|
@ -9,7 +9,7 @@ from lutris.config import check_config
|
|||
# from lutris import settings
|
||||
from lutris import pga
|
||||
from lutris.gui import config_dialogs
|
||||
from lutris.gui.lutriswindow import LutrisWindow
|
||||
from lutris.gui.application import Application
|
||||
from unittest import TestCase
|
||||
from lutris import runners
|
||||
|
||||
|
@ -29,7 +29,8 @@ class TestGameDialogCommon(TestCase):
|
|||
class TestGameDialog(TestCase):
|
||||
def setUp(self):
|
||||
check_config()
|
||||
lutris_window = LutrisWindow()
|
||||
lutris_application = Application()
|
||||
lutris_window = lutris_application.window
|
||||
self.dlg = config_dialogs.AddGameDialog(lutris_window)
|
||||
|
||||
def get_notebook(self):
|
||||
|
|
Loading…
Reference in a new issue