9578053 Jan 22 2022 distfiles.gentoo.org/distfiles/gajim-1.3.3-2.tar.gz
This commit is contained in:
parent
a5b3822651
commit
4c1b226bff
1045 changed files with 753037 additions and 18 deletions
5
test/unit/__init__.py
Normal file
5
test/unit/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
'''
|
||||
|
||||
This package just contains plain unit tests
|
||||
|
||||
'''
|
32
test/unit/test_gui_interface.py
Normal file
32
test/unit/test_gui_interface.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
'''
|
||||
Some diverse tests covering functionality in the GUI Interface class.
|
||||
'''
|
||||
import unittest
|
||||
|
||||
import gajim.gui
|
||||
gajim.gui.init('gtk')
|
||||
|
||||
from test import lib
|
||||
lib.setup_env()
|
||||
|
||||
from gajim.common import logging_helpers
|
||||
logging_helpers.set_quiet()
|
||||
|
||||
from gajim.common import app
|
||||
|
||||
from gajim.gui_interface import Interface
|
||||
|
||||
from gi.repository import GLib
|
||||
|
||||
class TestInterface(unittest.TestCase):
|
||||
|
||||
def test_instantiation(self):
|
||||
''' Test that we can proper initialize and do not fail on globals '''
|
||||
def close_app():
|
||||
app.app.quit()
|
||||
GLib.idle_add(close_app)
|
||||
app.app.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Loading…
Add table
Add a link
Reference in a new issue