IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29116


Ignore:
Timestamp:
Sep 2, 2010, 5:16:00 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Tests fixes

Location:
branches/sc_branches/psps_testing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/psps_testing/build.sh

    r29111 r29116  
    1515  utilities/__init__.py \
    1616  utilities/configuration.py \
    17   utilities/file_manipulation.py"
     17  utilities/file_manipulation.py\
     18  psi/psi_inquisitor.py"
    1819
    1920case "$1" in
     
    3031        done
    3132        echo "### Coverage results ###"
    32         $COVERAGE -r -o /usr -m
     33        $COVERAGE -r -o /usr,$HOME/local -m
    3334        ;;
    3435    all)
  • branches/sc_branches/psps_testing/testers/batch_file.py

    r29111 r29116  
    3030    PSDC-940-006-01, 3.5.1 (file attributes/size): OK
    3131    PSDC-940-006-01, 3.5.1 (file attributes/MD5 checksum of file): OK
     32    BARF
    3233    """
    3334    def __init__(self, filename):
  • branches/sc_branches/psps_testing/testers/fits/p2.py

    r29111 r29116  
    1111
    1212    def test(self):
    13         return ("None", None)
     13        return ("BARF", None)
  • branches/sc_branches/psps_testing/testers/fits_file.py

    r29111 r29116  
    7272        >>> basename = 'B00029152'
    7373        >>> tgz_filename = 'data/psut/ok/' + basename + '.tar.gz'
     74
    7475        >>> # Create the temporary directory for tests
    7576        >>> FitsFileTester._setup_test_environment(basename, tgz_filename)
    7677        >>> fft = FitsFileTester(fitsname, basename, '.tmp', 'P2')
     78        >>> print fft.test()
     79        ('BARF', None)
     80        >>> # Delete temporary directory
     81        >>> FitsFileTester._remove_test_environment()
     82
     83        >>> FitsFileTester._setup_test_environment(basename, tgz_filename)
     84        >>> fft = FitsFileTester(fitsname, basename, '.tmp', 'Unsupported')
    7785        >>> fft.test()
    78         >>> # Delete temporary directory
     86        Traceback (most recent call last):
     87        ...
     88        Exception: Unsupported FITS type [Unsupported]
    7989        >>> FitsFileTester._remove_test_environment()
    8090        """
     
    8292            return P2FitsTester(self.fitsFile).test()
    8393        else:
    84             raise Exception("Unsupported FITS type [%s]" % fitsType)
     94            raise Exception("Unsupported FITS type [%s]" % self.fitsType)
     95
     96if __name__ == '__main__':
     97    import doctest
     98    doctest.testmod()
Note: See TracChangeset for help on using the changeset viewer.