IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2010, 3:50:36 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Improved unit tests/code coverage. Some refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/psps_testing/testers/batch_file.py

    r29228 r29235  
    2626
    2727    >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test().success
    28     True
     28    False
     29    >>> # Will be True one day...
    2930    """
    3031    def __init__(self, filename):
     
    5152        Runs the different tests. Runs the dependant tests if all
    5253        tests are succesful.
     54
     55        >>> print BatchFileTester("data/psut/ok/B00000005.tar.gz").test().success
     56        False
     57        >>> print BatchFileTester("data/psut/ok/B00000005.tar.gz").test().success
     58        False
    5359        """
    5460        PsPsLogger.debug('Starting BatchFileTester object test')
     
    9298            FileManipulation.delete_directory(tempDir)
    9399        else:
    94             PsPsLogger.debug('Dependant tests not run (condition on upstream tests is %s and start_dependant_tests variable is %s)' % (str(testsOk), str(start_dependant_tests)))
     100            PsPsLogger.debug('Dependant tests not run (condition on upstream tests is %s and start_dependant_tests variable is %s)' % (str( product.success), str(start_dependant_tests)))
    95101        return product
    96102
     
    254260    current_argument_position = 1
    255261    while current_argument_position < len(sys.argv):
    256         if sys.argv[current_argument_position] == '-v':
     262        if sys.argv[current_argument_position] == '-debug': # pragma: no cover
    257263            PsPsLogger.set_stderr()
    258264            current_argument_position += 1
Note: See TracChangeset for help on using the changeset viewer.