Skip to content
Snippets Groups Projects
test_init.py 1.38 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 timeseriesviewer.tests import initQgisApplication, TestObjects
Benjamin Jakimow's avatar
Benjamin Jakimow committed
APP = initQgisApplication()
Benjamin Jakimow's avatar
Benjamin Jakimow committed
from timeseriesviewer.main import *
Benjamin Jakimow's avatar
Benjamin Jakimow committed
SHOW_GUI = True
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
    SHOW_GUI = False