From ff776480240b838dc59336528514d996dbb4ed7b Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 17 Oct 2015 11:10:51 +0200 Subject: [PATCH] Remove old cscripts unit test --- cscripts/Makefile.am | 8 ++++---- cscripts/__init__.py | 42 +++++++++++++++++++++--------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index 593409f..48962f7 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -13,8 +13,8 @@ pythonscripts = __init__.py \ obsutils.py # Test scripts to be distributed in $(pythondir)/cscripts/tests -testscripts = tests/__init__.py \ - tests/scripts.py +#testscripts = tests/__init__.py \ +# tests/scripts.py # Scripts for which symbolic links will be created in bindir linkscripts = cspull cssens cstsdist cscaldb csresmap \ @@ -27,8 +27,8 @@ binscriptsdir = $(bindir) binscripts_DATA = $(binscripts) pythonscriptsdir = $(pythondir)/cscripts pythonscripts_DATA = $(pythonscripts) -testscriptsdir = $(pythondir)/cscripts/tests -testscripts_DATA = $(testscripts) +#testscriptsdir = $(pythondir)/cscripts/tests +#testscripts_DATA = $(testscripts) # Add hook rule to create symbolic links for cscripts install-data-hook: diff --git a/cscripts/__init__.py b/cscripts/__init__.py index 12a516c..c8491d0 100644 --- a/cscripts/__init__.py +++ b/cscripts/__init__.py @@ -1,9 +1,22 @@ -""" -cscripts --- Python scripts from the ctools package. - -http://cta.irap.omp.eu/ctools/ -""" - +# ========================================================================== +# cscripts Python module +# +# Copyright (C) 2015 Juergen Knoedlseder +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program 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 this program. If not, see . +# +# ========================================================================== # List all scripts in this module __all__ = [ @@ -35,21 +48,8 @@ from .cstsdist import cstsdist from . import obsutils # Add test function -def test(verbosity=2): +def test(): """ Run cscripts tests. """ - # Imports - import unittest - from .tests.scripts import scripts - - # Create a test suite - test_suite = unittest.TestSuite() - - # Test cases must be listed manually here ... - # We currently don't use unittest for test collection - test_suite.addTest(unittest.makeSuite(scripts)) - - # Create a test runner and run the test - test_runner = unittest.TextTestRunner(verbosity=verbosity) - test_runner.run(test_suite) + print("No cscripts unit tests have been implemented so far.") -- libgit2 0.21.4