Commit fbfbb515e01c55e019c620f59328a38f6bca742e
1 parent
e81017c4
Correct inheritence in test_cssens.py
Showing
2 changed files
with
7 additions
and
4 deletions
test/test_cscripts_class.py
| 1 | -#! /usr/bin/env python | ||
| 2 | # ========================================================================== | 1 | # ========================================================================== |
| 3 | # cscripts test base class | 2 | # cscripts test base class |
| 4 | # | 3 | # |
| @@ -22,13 +21,14 @@ import os | @@ -22,13 +21,14 @@ import os | ||
| 22 | import gammalib | 21 | import gammalib |
| 23 | 22 | ||
| 24 | 23 | ||
| 25 | -# ======================= # | ||
| 26 | -# Test class for cscripts # | ||
| 27 | -# ======================= # | 24 | +# ======================================= # |
| 25 | +# Base class for unit testing of cscripts # | ||
| 26 | +# ======================================= # | ||
| 28 | class cscripts_test(gammalib.GPythonTestSuite): | 27 | class cscripts_test(gammalib.GPythonTestSuite): |
| 29 | """ | 28 | """ |
| 30 | Test class for scripts | 29 | Test class for scripts |
| 31 | """ | 30 | """ |
| 31 | + | ||
| 32 | # Constructor | 32 | # Constructor |
| 33 | def __init__(self): | 33 | def __init__(self): |
| 34 | """ | 34 | """ |
test/test_cssens.py
| @@ -39,6 +39,9 @@ class Test(test_cscripts_class.cscripts_test): | @@ -39,6 +39,9 @@ class Test(test_cscripts_class.cscripts_test): | ||
| 39 | """ | 39 | """ |
| 40 | Constructor | 40 | Constructor |
| 41 | """ | 41 | """ |
| 42 | + # Call base class constructor | ||
| 43 | + test_cscripts_class.cscripts_test.__init__(self) | ||
| 44 | + | ||
| 42 | # Return | 45 | # Return |
| 43 | return | 46 | return |
| 44 | 47 |