Skip to content
Snippets Groups Projects
test_init.py 1.4 KiB
Newer Older
# -*- coding: utf-8 -*-

"""
***************************************************************************

    ---------------------
    Date                 : 30.11.2017
    Copyright            : (C) 2017 by Benjamin Jakimow
    Email                : benjamin jakimow at geo dot hu-berlin dot de
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""
# noinspection PyPep8Naming

import os, sys, unittest, configparser
from eotimeseriesviewer.tests import initQgisApplication, TestObjects
Benjamin Jakimow's avatar
Benjamin Jakimow committed
APP = initQgisApplication()
from eotimeseriesviewer.main import *
SHOW_GUI = True and os.environ.get('CI') is None
Benjamin Jakimow's avatar
Benjamin Jakimow committed
class TestInit(unittest.TestCase):
Benjamin Jakimow's avatar
Benjamin Jakimow committed
    def test_loadexampledata(self):
        TSV = TimeSeriesViewer()
        TSV.show()
        TSV.loadExampleTimeSeries()
Benjamin Jakimow's avatar
Benjamin Jakimow committed
        if SHOW_GUI:
            APP.exec_()
Benjamin Jakimow's avatar
Benjamin Jakimow committed

if __name__ == '__main__':
    unittest.main()
Benjamin Jakimow's avatar
Benjamin Jakimow committed

APP.quit()