Source code for seriesmarker.test.test_runner

# ==============================================================================
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 - 2016 Tobias Röttger <toroettg@gmail.com>
#
# This file is part of SeriesMarker.
#
# SeriesMarker is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# SeriesMarker is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SeriesMarker.  If not, see <http://www.gnu.org/licenses/>.
# ==============================================================================


import unittest

from seriesmarker.test.database import database_test_runner
from seriesmarker.test.gui import gui_test_runner


[docs]def get_suit(): all_suites = unittest.TestSuite() all_suites.addTests(database_test_runner.get_suit()) all_suites.addTests(gui_test_runner.get_suit()) return all_suites
[docs]def load_tests(loader, tests, pattern): """Enables (graphical) unit testing in PyDev.""" return get_suit()
if __name__ == "__main__": unittest.TextTestRunner(verbosity=2).run(get_suit())