Commit ff776480240b838dc59336528514d996dbb4ed7b

Authored by Jürgen Knödlseder
1 parent f688fd4a

Remove old cscripts unit test

cscripts/Makefile.am
... ... @@ -13,8 +13,8 @@ pythonscripts = __init__.py \
13 13 obsutils.py
14 14  
15 15 # Test scripts to be distributed in $(pythondir)/cscripts/tests
16   -testscripts = tests/__init__.py \
17   - tests/scripts.py
  16 +#testscripts = tests/__init__.py \
  17 +# tests/scripts.py
18 18  
19 19 # Scripts for which symbolic links will be created in bindir
20 20 linkscripts = cspull cssens cstsdist cscaldb csresmap \
... ... @@ -27,8 +27,8 @@ binscriptsdir = $(bindir)
27 27 binscripts_DATA = $(binscripts)
28 28 pythonscriptsdir = $(pythondir)/cscripts
29 29 pythonscripts_DATA = $(pythonscripts)
30   -testscriptsdir = $(pythondir)/cscripts/tests
31   -testscripts_DATA = $(testscripts)
  30 +#testscriptsdir = $(pythondir)/cscripts/tests
  31 +#testscripts_DATA = $(testscripts)
32 32  
33 33 # Add hook rule to create symbolic links for cscripts
34 34 install-data-hook:
... ...
cscripts/__init__.py
1   -"""
2   -cscripts --- Python scripts from the ctools package.
3   -
4   -http://cta.irap.omp.eu/ctools/
5   -"""
6   -
  1 +# ==========================================================================
  2 +# cscripts Python module
  3 +#
  4 +# Copyright (C) 2015 Juergen Knoedlseder
  5 +#
  6 +# This program is free software: you can redistribute it and/or modify
  7 +# it under the terms of the GNU General Public License as published by
  8 +# the Free Software Foundation, either version 3 of the License, or
  9 +# (at your option) any later version.
  10 +#
  11 +# This program is distributed in the hope that it will be useful,
  12 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14 +# GNU General Public License for more details.
  15 +#
  16 +# You should have received a copy of the GNU General Public License
  17 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  18 +#
  19 +# ==========================================================================
7 20  
8 21 # List all scripts in this module
9 22 __all__ = [
... ... @@ -35,21 +48,8 @@ from .cstsdist import cstsdist
35 48 from . import obsutils
36 49  
37 50 # Add test function
38   -def test(verbosity=2):
  51 +def test():
39 52 """
40 53 Run cscripts tests.
41 54 """
42   - # Imports
43   - import unittest
44   - from .tests.scripts import scripts
45   -
46   - # Create a test suite
47   - test_suite = unittest.TestSuite()
48   -
49   - # Test cases must be listed manually here ...
50   - # We currently don't use unittest for test collection
51   - test_suite.addTest(unittest.makeSuite(scripts))
52   -
53   - # Create a test runner and run the test
54   - test_runner = unittest.TextTestRunner(verbosity=verbosity)
55   - test_runner.run(test_suite)
  55 + print("No cscripts unit tests have been implemented so far.")
... ...